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.

Ask HN: Catching Up with Python – Resources?

30 pointsby adzicgabout 4 years ago
What books would you recommend to catch up on modern python development practices and syntax?<p>I&#x27;ve last done python seriously in 2005, so early 2.x versions.

7 comments

PaulHouleabout 4 years ago
The Python manual.<p>There are two kinds of programming languages: (i) where the official manual is clear and complete, and (ii) ones where it is not.<p>In a type (i) language you should read the manual while spinning at the gym and train yourself to be very fast to look up answers to questions like &quot;how do I generate a random integer in the (3,7) range&quot; in the official manual.<p>Books, blog posts, etc. tend to inject errors and also become stale over time. For instance there is a lot about Python 3.5 and 3.6.1 that you don&#x27;t want to know. A Pythoner in 2021 could be working with anything from Py 3.9 to 3.7 or late 3.6.9. A book written to Python 3.7 is going to be a basically good foundation to work on, but I know Py 3.8 and 3.9 feature use is common in the wild and 3.10 is not far away.<p>If you learn the manual like the back of your hand, you can look up whatever version you need, what the changes are, etc.
评论 #26612541 未加载
asicspabout 4 years ago
I have a collection of resources here: <a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;py_resources&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;py_resources&#x2F;</a><p>I&#x27;ll echo other comments to say that official Python tutorial and documentation is a great place to start. &#x27;Fluent Python&#x27; 2nd edition is coming later this year. &#x27;Practices of the Python Pro&#x27; and &#x27;Serious Python&#x27; are other books that&#x27;d fit your request.
Nextgridabout 4 years ago
It really depends on what you want to achieve. The documentation is very good but also very verbose and it would take ages to read through all of it.<p>I’d say pick a project, choose the relevant libraries (for web I’d suggest Django for a full-featured framework, or Flask for a lightweight one) and then learn by trial and error.<p>A good IDE such as PyCharm will allow you to look into symbols’ underlying implementations which helps a lot in understanding how something works behind the scenes.
_____beeabout 4 years ago
- Python Design Patterns: <a href="https:&#x2F;&#x2F;python-patterns.guide&#x2F;" rel="nofollow">https:&#x2F;&#x2F;python-patterns.guide&#x2F;</a><p>- Python 3 Patterns, Recipes and Idioms: <a href="https:&#x2F;&#x2F;python-3-patterns-idioms-test.readthedocs.io&#x2F;en&#x2F;latest&#x2F;" rel="nofollow">https:&#x2F;&#x2F;python-3-patterns-idioms-test.readthedocs.io&#x2F;en&#x2F;late...</a><p>- Effective Python: 59 Specific Ways to Write Better Python <a href="https:&#x2F;&#x2F;github.com&#x2F;SigmaQuan&#x2F;Better-Python-59-Ways" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;SigmaQuan&#x2F;Better-Python-59-Ways</a>
Jugurthaabout 4 years ago
It depends what you used to do with Python, really. There are a lot of users whose code didn&#x27;t change from 2.x to 3.x except for the print &quot;statements&quot;.<p>I replied to similar threads[0][1], reproduced here:<p>&quot;&quot;&quot;<p>The Python documentation is pretty cool. I frequently go to Chapter 3 (Data Model) and always learn something new reading something I had already read but didn&#x27;t quite get. The mailing list has top notch posters who are always willing to help.<p>The IRC channel (#python) has very helpful members who&#x27;ve been patient with me on more than one occasion.<p>Books:<p>Stacking the deck:<p>&quot;Python Guide&quot; - Kenneth Reitz: The bits one doesn&#x27;t necessarily think about but that simplify life: virtual environments, unit test, project structure, good practices, scenarios for different kinds of applications, documentation, etc.<p>Doing stuff:<p>&quot;Python Cookbook&quot; (several editions by different authors, Alex Martelli and David Beazley): as the title states, it&#x27;s a cookbook that shows you how to do a bunch of stuff in Python (files, network, threads, etc). This can get you &quot;operational&quot; in Python pretty fast.<p>Doing stuff well (meta):<p>&quot;Writing Idiomatic Python&quot; - Jeff Knupp:<p>The book comes for Python 2 and Python 3 and contrasts &quot;harmful&quot; and &quot;good&quot;. Jeff Knupp also has videos showing you the process of refactoring code. He also has a blog (<a href="https:&#x2F;&#x2F;jeffknupp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jeffknupp.com&#x2F;</a>) where he addresses many topics.<p>&quot;Effective Python: 59 Specific Ways to Write Better Python&quot; - Brett Slatkin: Pretty good book. The subtitle says it all: 59 specific ways to write better Python. (600 + pages).<p>&quot;Learn Python the Hard Way&quot; - Zed Shaw: I&#x27;ve read that starting out in Python. Maybe not for a 15 year Perl veteran, but this is for memo.<p>There&#x27;s certainly some overlap in these books, but it helps to repeat a message to understand the importance of something, or to drive a point home. I didn&#x27;t use virtual environments until the message was repeated enough in different ways.<p>Pornography:<p>PyCon talks. A lot of these are great.<p>David Beazley (a bunch of talks that are pretty cool. Still haven&#x27;t finished the ones on generators but they&#x27;re very good).<p>Brandon Rhodes (on aesthetics and design patterns (or lack thereof), and testing web applications).<p>Kenneth Reitz on design.<p>Raymond Hettinger (you&#x27;ll find &quot;Writing Beautiful Idiomatic Python&quot; and &quot;Beyond PEP8&quot; most helpful).<p>&quot;&quot;&quot;<p>&quot;&quot;&quot;<p>Not a channel, but talks by David Beazley on Python topics are gems. High insight density. The presentation are often 60+ pages, and you can spend hours playing with each concept in every &#x27;slide&#x27;. His talks are rabbit holes. Raymond Hettinger tweets snippets of code that are delicious. His talks are really useful, too. Specifically, the one entitled &#x27;Beyond PEP8&#x27; which focuses you on the impact you can have by zooming out of details and concentrate on good design.<p>This is something I&#x27;ve been using. I write code that uses a yet to be API, and ask myself and colleagues if it makes sense for them to use it.<p>For example, I&#x27;m writing a Python wrapper for MinIO&#x27;s admin command line interfaces &#x27;mc&#x27; and &#x27;minio&#x27; which the Python client lacks. Put up the docs first at <a href="https:&#x2F;&#x2F;big-mama-tech.gitlab.io&#x2F;bmc" rel="nofollow">https:&#x2F;&#x2F;big-mama-tech.gitlab.io&#x2F;bmc</a> and asked colleagues and the MinIO folks if it&#x27;s acceptable&#x2F;useful before really going for parity.<p>&quot;&quot;&quot;<p>- [0]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15576496" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15576496</a><p>- [1]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24671742" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24671742</a>
评论 #26606338 未加载
cpachabout 4 years ago
I’m not sure if there is any definite resource that covers it all.<p>Besides the official documentation perhaps have a look at these resources:<p><a href="https:&#x2F;&#x2F;openbookproject.net&#x2F;thinkcs&#x2F;python&#x2F;english3e&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openbookproject.net&#x2F;thinkcs&#x2F;python&#x2F;english3e&#x2F;</a><p><a href="https:&#x2F;&#x2F;realpython.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;realpython.com&#x2F;</a>
notemakerabout 4 years ago
<a href="https:&#x2F;&#x2F;www.oreilly.com&#x2F;library&#x2F;view&#x2F;fluent-python&#x2F;9781491946237&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.oreilly.com&#x2F;library&#x2F;view&#x2F;fluent-python&#x2F;978149194...</a>
评论 #26629506 未加载