News for hackers. Stuff that matters.

Ask HN: Best Python Book For Advanced User?

So I can write concise Python code, but really want to level up my understanding of Python programming language (both good and bad parts) and gain some insights on how to use Python effectively. Is there any book can do that for me?

(Think "The Well-Grounded Rubyist" for Ruby, "Effective Java" for java, "On Lisp" for lisp, etc.)

I will really appreciate any reply.

( 4 comments | 15 points | on HN )
Re:Ask HN: Best Python Book For Advanced User? by ajkumar25 on Saturday June 07, 2014 @07:47AM (#7861877)
Learning Python 5/E (http://www.amazon.com/Learning-Python-Edition-Mark-Lutz/dp/1...). This book is great book for both intermediate and advanced developers. Very in-depth.
Re:Ask HN: Best Python Book For Advanced User? by cessor on Saturday June 07, 2014 @09:36AM (#7862045)
I am not sure there is a generic answer to your inquiry. If you want to understand python itself you would be best off checking out the source code, building it yourself and then try to change some language features for fun.

Other than that I'd recommend that you find a domain you are particularily interested in and get some books on the specific aspects of that, for example Python for Data Analysis. http://shop.oreilly.com/product/0636920023784.do

This allows you to focus on what to do with python and the eco system of frameworks and so on.

If you want to learn how to use Python effectively, I believe you should decide what domain to apply it in. Python is no end in itself, as is the case with most other tools...

Re:Ask HN: Best Python Book For Advanced User? by bdevine on Saturday June 07, 2014 @09:50AM (#7862076)
"Treading in Python, Vol. 2" by Harrison goes pretty in-depth with the usual suspects -- iterators, generators, decorators, dunder methods, etc. Then Knupp's "Idiomatic Python" is handy to review for tips and tricks. But overall I also like Beazley et. al. for a great cookbook and a good glimpse into "effective" Python.
Re:Ask HN: Best Python Book For Advanced User? by mjhea0 on Saturday June 07, 2014 @11:52AM (#7862333)
If you're looking for advanced web development, check out Real Python - http://www.realpython.com

Sure, we start with the basics, but we do get into some advanced topics - like BDD, adding Angular to Django ...

(Note: I am the co-founder and author)