[PyAR2] Effective Python
Chad_Cooper at SWN.COM
Sat Nov 17 17:18:51 CET 2007
The python cookbook rocks! I look through it occasionally on aspn too (http://aspn.activestate.com/ASPN/Python/Cookbook). I bought my cookbook used on amazon for $10 and it was brand new. Its chock full of great ideas, and on aspn its constantly evolving.
From: Greg Lindstrom [mailto:gslindstrom at gmail.com]
Sent: Saturday, November 17, 2007 08:30 AM Central Standard Time
To: pyar2 at python.org
Subject: [PyAR2] Effective Python
Here are some snippets from another thread asking about a book similar to
Effective C++ (June 2006). I don't know if the links are still good, but
it's a start. I'll keep looking. Have you seen the Python Cookbook
(O'Reilly)? It's full of all sorts of code snippets organized by subject
and I use it all of the time to learn new techniques. David Goodger
(mentioned below) as a co-author of "Effective Python" is the chairman of
PyCon this year. Since I'm working with him already, I;ll ask him the
status of the book.
I just finished reading Learning Python 3rd ed, and am doing my
first Python application, which retrieves and process text and XML
documents from Web. Python helped me to write the application in a few
hours, I'm very happy with its productivity. But the performance is not
satisfactory. I decide to optimized it in Python before trying C/C++
extensions. But I don't know Python much and have no clu to tune my
program. Also, I don't know what Pythonist's preferred styles. Are
there any books/documents which play the similar role for Python as
'Effective C++' does for C++?
For example, one of my friends read my program and suggest me to
move the re.compile() out of a for-loop, since the regular pattern is
fixed, and re.compile() is slow. I want to find more such advice, where
can I find them?
Also, I suggest checking Psyco ( http://psyco.sourceforge.net/ ), which
can easily improve your program's speed with no change in your code.
Hope this helps...
I think Aahz stated somewhere that he was workign on Effective Python.
I'm not sure if it's an ongoing plan or it's been canned though?
You might want to give this site a look:
<red face> That's my fault. I'm technically still under contract to
write _Effective Python_, but it has proven much more difficult to write
than I expected. (Not in the sense of difficulty finding material, but
in sitting down and *writing*.) I actually brought in David Goodger as
co-author and we still haven't been able to make progress. :-(
Right now, I'm finishing up _Python for Dummies_ (which is mostly being
written by Stef -- I provide the technical expertise and editing), and
after a suitable resting time, we'll see if we can get back on track
with _Effective Python_
Aahz (aahz at pythoncraft.com
Notice: This e-mail may contain privileged and/or confidential
information and is intended only for the addressee. If you are not the
addressee or the person responsible for delivering it to the addressee,
you may not copy or distribute this communication to anyone else. If you
received this communication in error, please notify us immediately by
telephone or return e-mail and promptly delete the original message from
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyAR2