views:

1967

answers:

7

There are a lot of books out there for new programmers getting into Python. However, are there any books for people who are experienced both in programming and to some degree in Python that introduces advanced topics, subtleties, gotchas, and best practices in Python?

I'm thinking in terms of something like Effective C++ or Effective Java.

There's a number of topics that beginners don't care about, that people using Python for Serious Business TM want to know. For instance, tips for writing code that is both portable across platforms, and across different versions of Python. What standard library modules are broken, and what are the better alternatives?

+4  A: 

Bruce Eckel is writing a new book, Python 3 Patterns & Idioms. It looks very promising.

You may be interested in the Python cookbook too.

Bastien Léonard
A big drawback with it is that it's Python 3, and Python 3 pretty much isn't ready yet, as there are way to few third-party packages (in particular setuptools is very much missing). Otherwise, good recommendation.
Lennart Regebro
+7  A: 

I haven't read it yet myself, but John D. Cook recommends "Expert Python Programming" on his Endeavor blog. I am more than halfway through "Core Python", John's other recommendation. His choice was spot on. It's an excellent book.

I think so highly of John, his blog, and his work that his recommendations carry more weight with me.

duffymo
A: 

Who needs a book when you have SO-just my humble opinion

PyNEwbie
+3  A: 

I think reading Python source code is also a good choice to have a deep insight into how Python actually works, since CPython implementation is quite clean and easy to read.

ZelluX
+2  A: 

I can really recommend you

Core Python Programming by Wesley J. Chun

it's simple and advanced at the same time, very pleasantly written, covers the basics as well as good practises and a great bunch of advanced topics.

Greetings,

Tom

Tom
+1 from me. I'm reading it now. I think it's a terrific book. John D. Cook also recommends it.
duffymo
+1 i'm flattered at all of your recommendations. as i'm getting ready to work on a 3rd edition, i'd like to hear some suggestions on how it can be improved as well as see if any of you are interested in being a technical reviewer for it!
wescpy
It is indeed a terrific book. I managed to pull 3 friends into the python world aided by this book just in the last 2 months. I'd gladly help as a technical reviewer if its still needed, too bad I'm seeing this comment this late :(
Tom
+2  A: 

I recommend this book.

Python Scripting for Computational Science Series: Texts in Computational Science and Engineering , Vol. 3 Langtangen, Hans Petter 3rd ed. 2008. Corr. 2nd printing, 2009, XXVI, 758 p. 62 illus., Hardcover ISBN: 978-3-540-73915-9

http://www.springer.com/math/cse/book/978-3-540-73915-9

Selinap
+1  A: 

I would strongly suggest Pro Python by Marty Alchin, the author of Pro Django.

shanyu