TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Intermediate Python

335 pointsby heyalexejalmost 10 years ago

24 comments

yasoobalmost 10 years ago
Hi guys! I am the author of this book. Thanks heyalexej for posting this here. If there is anything I can help you guys with then kindly let me know. :)
评论 #10075884 未加载
评论 #10096936 未加载
评论 #10077150 未加载
评论 #10078713 未加载
评论 #10084783 未加载
nstartalmost 10 years ago
Brilliant. Every language should have a book like this. I&#x27;m already learning a lot of little details about features I&#x27;ve had some passing experience on. Only request I have (which I generally have for stuff like this), is for real life use cases. Example would be <i>args and </i>*kwargs being used in decorators. Where do you use it? What&#x27;s a real life example of it being used? How does that compare to the in built decorator functionality of Python? Answering this type of question helps people understand the technique and theory in equal measures as opposed to more theory than technique.<p>Thanks again for this :).
评论 #10078186 未加载
评论 #10077894 未加载
评论 #10077421 未加载
3pt14159almost 10 years ago
Map and filter are looked down upon by some Python devs because they prefer list comprehensions. If you don&#x27;t need the laziness (in Python 3 only), you probably shouldn&#x27;t use them because some don&#x27;t consider them idiomatic. See this for more information:<p><a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;6407222&#x2F;384700" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;6407222&#x2F;384700</a>
评论 #10076472 未加载
评论 #10077496 未加载
评论 #10077970 未加载
heyalexejalmost 10 years ago
From related Reddit thread[0]:<p><i>Note: This is not related with that paid &quot;intermediate Python&quot; book in any way. I became aware of it today. I had been using this name internally for a couple of months. If the author of paid &quot;Intermediate Python&quot; has any issue with this I would be more than happy to change the name of my book because he definitely beated me to the finish line. :)</i><p>[0] <a href="http:&#x2F;&#x2F;redd.it&#x2F;3hbb46" rel="nofollow">http:&#x2F;&#x2F;redd.it&#x2F;3hbb46</a>
评论 #10076646 未加载
评论 #10078302 未加载
teekertalmost 10 years ago
I love it, as a biologist I did a Python course some months ago, already I&#x27;m much more productive than I was in my Origin&#x2F;Excel time. this books really clarifies many of those strange things (like kwargs etc). This is going straight into my favorites and I know I&#x27;ll be using it often. Thanx!!!
评论 #10077972 未加载
yasoobalmost 10 years ago
I have put a link to a mailing list. If you want to tip me then kindly signup over there and I would let you know once I have a tip receiving system in place. I already run a reputed [Python Weekly Newsletter](<a href="http:&#x2F;&#x2F;newsletter.pythontips.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;newsletter.pythontips.com&#x2F;</a>) so you are in a good company (meaning I won&#x27;t spam you).<p>Mailing list: <a href="http:&#x2F;&#x2F;eepurl.com&#x2F;bwjcej" rel="nofollow">http:&#x2F;&#x2F;eepurl.com&#x2F;bwjcej</a>
SEJeffalmost 10 years ago
And if anyone wants to add &#x2F; enhance this here you go:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;IntermediatePython&#x2F;intermediatePython" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;IntermediatePython&#x2F;intermediatePython</a>
rectangletanglealmost 10 years ago
<p><pre><code> from contextlib import contextmanager </code></pre> I love this feature, I never forget to close a connection. It can also be useful for monkey patching, or thread local variable based optimizations.
TheGRSalmost 10 years ago
This looks great just from glancing over the table of contents. I picked up Python nearly a year ago and I am a pretty novice programmer at best. Over time I&#x27;ve learned stuff like decorators, lambas, args&#x2F;kwargs and other stuff that you generally don&#x27;t find in the &quot;Intro to Python&quot; books, but its all been through stumbling into the right place. Thanks for sharing, I may have something to read this week :)
snurkalmost 10 years ago
Shit, what I need is &quot;How to publish a package to PyPi in 3 easy steps.&quot;<p>I go around and round with the Python Packaging Authority&#x27;s documentation.
评论 #10076765 未加载
olenhadalmost 10 years ago
Great job @yasoob! What&#x27;s even more amazing, even thought not directly relevant, is that the author is still in high school.
leni536almost 10 years ago
I just skimmed through decorators. I don&#x27;t use python too much and decorators always seemed a little bit black magic for me. Thanks for proving this wrong.
yasoobalmost 10 years ago
You guys can donate me if you want to by buying the donation version of Intermediate Python from [@gumroad](<a href="https:&#x2F;&#x2F;gumroad.com&#x2F;l&#x2F;intermediate_python" rel="nofollow">https:&#x2F;&#x2F;gumroad.com&#x2F;l&#x2F;intermediate_python</a>) :)<p>It is only for $10 but if you want to pay less then kindly let me know (pm) and I can give you a custom link.<p>Cheers!
jeremiecoullonalmost 10 years ago
Thanks for this! It&#x27;s really good to have intermediate stuff all in one place, rather than tutorials on a specific topic
omegotealmost 10 years ago
Nice, I&#x27;ve shared it in my social networks.<p>As for a supposed &quot;Advanced Python&quot; edition, it would be great to compile at least a list of topics that could be interesting. Some have been already mentioned in this thread, like:<p><pre><code> - Metaclasses - Packaging (for pypi) </code></pre> I&#x27;d add:<p><pre><code> - Must-have libraries - Testing</code></pre>
评论 #10077845 未加载
评论 #10077472 未加载
评论 #10077504 未加载
jqmalmost 10 years ago
I like it. Really good.<p>The only point, I might not consider lists being mutable nor global values vs values returned from a function intermediate topics. Those are beginner topics I think.. one would have a hard time using the language almost at all without understanding them. I would say the part about decorators and <i>kwargs </i>args is more intermediate level. Anyone who gets to that probably already understands global variables and the fact certain data structures are mutable.<p>But not abuse your work. The book is nice. I learned a couple of things.
评论 #10076299 未加载
评论 #10076732 未加载
opmacalmost 10 years ago
Really good stuff here, and well put together.
0x29A-almost 10 years ago
Is there anything like this site for Java?
评论 #10076574 未加载
potatosareokalmost 10 years ago
Another useful brief overview - <a href="http:&#x2F;&#x2F;python.net&#x2F;~goodger&#x2F;projects&#x2F;pycon&#x2F;2007&#x2F;idiomatic&#x2F;handout.html" rel="nofollow">http:&#x2F;&#x2F;python.net&#x2F;~goodger&#x2F;projects&#x2F;pycon&#x2F;2007&#x2F;idiomatic&#x2F;han...</a>
sateeshalmost 10 years ago
I see that that the book has a section on usage of For-Else construct. Personally I found this construct to be confusing, and avoid its usage as one can achieve the same by setting a flag (say). Is this construct much used ?
评论 #10078450 未加载
p1eskalmost 10 years ago
Another &quot;Intermediate Python&quot; book: <a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;dp&#x2F;149055095X" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;dp&#x2F;149055095X</a>
评论 #10076440 未加载
评论 #10075545 未加载
whocanflyalmost 10 years ago
This is great! You can make an ipython notebook version of this too.
objectifiedalmost 10 years ago
Really good stuff in here, thanks for this. Are there any plans to follow this up with something along the lines of &quot;Advanced Python&quot;?
评论 #10077490 未加载
评论 #10076432 未加载
vchynarovalmost 10 years ago
It&#x27;s interesting how a search for &quot;metaclasses&quot; in the given link doesn&#x27;t yield any results.
评论 #10075781 未加载
评论 #10077020 未加载
评论 #10075788 未加载