I looked for it I swear, but just can't find it.
Most Python books seem to focus on examples of how to call functions
from standard library. I don't need that, I have online Python
documentation for that.
I mean really advanced mental gymnastics, like gory details of how
Python objects operate, how to exploit its dynamic capabilities, dos and
donts with particular Python objects, advanced tricks, everything from
chained decorators to metaprogramming. Dive Into Python comes closest to
this ideal from what I have found, but still not far enough.
Anybody found such holy grail?
Regards,
mk
The favorite ones around here are "Python Cookbook" and "Python in a
Nutshell", both by Alex Martelli, who used to be a newsgroup regular
and still stops by from time to time.
reading through the recipes can be interesting -
http://code.activestate.com/recipes/langs/python/
also, reading any good computing book and then wondering how you can
do that in python can help shed a new light on things.
andrew
To the OP:
Do yourself a favor and go to a bookstore and read a chapter or
two of the cookbook. While you can see the recipes on activestate,
there is a _lot_ of value added in (1) the selection, (2) the
editing for a more consistent style, and (3) the chapter intros
by people chosen for their knowledge on the chapter's subject.
--Scott David Daniels
Scott....@Acm.Org
"Expert Python Programming" by Tarek Ziadé is quite good and I wrote
a review for it:
http://www.artima.com/weblogs/viewpost.jsp?thread=240415
There is plenty of info about Advanced Python on the net, much more
than in book form. Come to think of it, there are my Oxford lectures
(the title was exactly "Advanced Python Programming") and I could
republish it on my blog, since I cannot find them on the net anymore.
Michele Simionato
I believe that any book will give you enough information about
python's objects behaviour.
But if you want to understand the more esoteric aspects of python (I'm
in the same situation),
perhaps you should investigate decorators and metaclasses.
A good starting point is the 3 article series in decorators by Bruce
Eckel in Artima ( http://www.artima.com/weblogs/viewpost.jsp?thread=240808
).
I second the suggestion of reading samples and cookbooks, for example
in ActiveState's site.
I found particularly interesting one that shows how to implement an
ORM under 100 lines ( http://code.activestate.com/recipes/496905/ ).
This script goes deep into black magic and it's clear enough to grasp.
Luis
+1 for this. I'm 3/4 of the way through it, it's pretty good. Covers
many on the important areas that the more introductory books rightly
leave out,
--
Cheers,
Simon B.
I keep a copy of "Python In A Nutshell" on my desk at all times. Most
of my books are in great shape, but this one is ripped all to hell.
The sign of a good book. It covers just about everything, though not
all in extreme depth. It's a great book!
I've been writing Python for about 4 years now and over the week or so
I've caught the "I should know more about the internals" bug. As a
result, I've been trying to trace the interpreter from the start of
the main function through user code execution. Getting to fully
understand the C API and the actual CPython implementation is
something I wish I would have done years ago. I'd suggest you do that
if you get the chance.
Excellent review.
--
regards,
Banibrata
http://www.linkedin.com/in/bdutta
Michele,
Was wondering if you'd had a chance to re-post your lectures -- just did
a search for them and came up empty, and I would love to read them!
Many thanks in advance!
~Ethan~
Oops, I forgot! I will try to make them available soon.
Here they are: http://www.phyast.pitt.edu/~micheles/oxford-lectures.zip
Hello, Michele!
Thanks a lot for posting!!!