Ask HN: Best way to learn advanced Python?
11–20 of 32 posts
Re: Ask HN: Best way to learn advanced Python?
#12Claim the issue and ask for some help (after doing your homework), and I suspect you'll get helpful direction. That was my experience anyways.
It will likely take some time to find something that looks interesting and solvable, but that's the best way to learn IMO so it's worth the grunt work.
Re: Ask HN: Best way to learn advanced Python?
#13The best way to improve is by writing more code in python. You can develop a desktop gui app or an open source python package to challenge your python skills.
Not exactly true. You will need good examples. Python from the start is a “higher performance” hack of a language (wrap everything you do on a try block because the language is so finicky and inconsistent failure is the most reliable way to know something is false.) Find a good example and follow it while writing more code.
Re: Ask HN: Best way to learn advanced Python?
#14There is two different things here, “advanced” Python that applies to webdev, and other areas of Python (data science, ML). Three things I would recommend: 1. As a Django dev dig deep into Django’s internals, there is loads to learn from its codebase, particularly meta classes in the orm and form frameworks. The template engine is also highly complex. Try building a tool that scratches your own itch with Django, and…
Re: Ask HN: Best way to learn advanced Python?
#15Hands-on stuff: Write command-line tools and libraries that are useful for yourself or that are somehow fun. Try out some existing or 3rd party libraries.
Re: Ask HN: Best way to learn advanced Python?
#16What do you want to achieve by learning advanced Python? What does advanced Python mean to you? Answers will dictate what makes sense for you. Since you said you're a Django dev, maybe try re-implementing a library/dependency you use. Start with something obvious, and then maybe something less so. You'll learn quickly how much of it is advanced Python vs advanced Django. Python is very deep, but you don't really need…
OP here. Thanks for replying. Most of my Django code is dead simple - validation, business logic, crud operations. Loops, conditionals, the occasional string manipulation, dicts, sets and exception handling. Very rarely a list comp. Almost never dunder methods, writing an annotation, oop, generators, worrying about concurrency, threads, locks, etc. Things that I know the equivalent of in Java very well since I came f…
The list of things you never use reads just like the table of contents of the book. I've only read 1st edition but I imagine the 2nd edition is more relevant now.
Re: Ask HN: Best way to learn advanced Python?
#17The best way to improve is by writing more code in python. You can develop a desktop gui app or an open source python package to challenge your python skills.