News for hackers. Stuff that matters.
Re:Ask HN: Best way to learn advanced Python? by kamikaz1k on Friday August 05, 2022 @12:22PM (#32358314)
What 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 to know most of it. And the ones who do, know it because they were trying to accomplish something specific.[1]

[1] Tweet about slots by author of Flask - https://mobile.twitter.com/mitsuhiko/status/5004329133817487...

Re:Ask HN: Best way to learn advanced Python? by rlawson on Friday August 05, 2022 @01:17PM (#32359054)
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 from that world.

Re:Ask HN: Best way to learn advanced Python? by markedle on Friday August 05, 2022 @06:23PM (#32362671)
Check out Fluent Python https://www.oreilly.com/library/view/fluent-python-2nd/97814...

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.