Can someone suggest an advanced Python book? I want a book that covers topics such as threading, networking, memory management and so on.
I find "Python Essential Reference" useful. It is a great reference and general language book.
http://www.amazon.com/Python-Essential-Reference-David-Beazley/dp/0672329786
The python cookbook is a good repository of examples, though some of them are getting a bit long in the tooth these days. The second edition is newer (2005), though it is targeted to 2.4.
http://www.amazon.com/Python-Cookbook-Alex-Martelli/dp/0596007973/
For the topics you described, you need to understand operating systems more than python. Once the OS level becomes clear, the Python code is quite obvious.
This is one of the best books ever written:
Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series) (Paperback)
ISBN-10: 0321525949
ISBN-13: 978-0321525949
5 star amazon reviews (I'd give it 6).
Once I realized that networking, file I/O, shared memory, IPC, sockets, signals, etc... are all provided by the OS layer, then this became the answer to a lot of questions.
Then going back to python, you understand what all the stuff in the os module means, and can write really advanced programs with ease.
Expert Python Programming. it covers not just the general best practices (generators, iterators, etc) but then the real stuff you need to build a project -- documentation w/ restructured text & sphinx, testing with nose, buildout, setuptools, etc.
Cookbook
Dive into Python3
Python 3 Patterns & Idioms
http://www.mindviewinc.com/Books/Python3Patterns/Index.phpFoundations of Agile Python Development http://www.amazon.com/Foundations-Python-Development-Experts-Source/dp/1590599810/ref=pd_bxgy_b_img_b