Eureka moments in Python

Brett g Porter bgporter at acm.org
Tue Mar 13 11:05:07 EDT 2007


Steven D'Aprano wrote:
> I'd be interested in hearing people's stories of Eureka moments in Python,
> moments where you suddenly realise that some task which seemed like it
> would be hard work was easy with Python.

Mine was definitely when I was first working with the xmlrpc module, and 
I was puzzled to no end how it was that I was able to make a call to a 
method of an object when that method didn't exist. All the talk about 
Python being a dynamic language had bounced off of me until that moment, 
when I walked through the __getattr__ method in the debugger and was 
enlightened.

Not surprisingly, that was also the moment when C++ started feeling like 
a straightjacket to me...




More information about the Python-list mailing list