Eureka moments in Python

Paul McGuire ptmcg at austin.rr.com
Fri Mar 16 10:02:10 EDT 2007


On Mar 13, 2:16 am, Steven D'Aprano <s... at REMOVEME.cybersource.com.au>
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.
>

The day I wrote a CORBA method intercepter in 8 lines of code using
__getattr__ to catch 2 or 3 interesting method calls out of 20 or 30
defined in the IDL.  The interesting methods I handled, and the rest I
just forwarded to the remote CORBA object.  Unfortunately, the client
expected this to be an expensive job, and I was only able to bill him
for 1/2 an hour (I had to test the code in addition to writing it).

-- Paul




More information about the Python-list mailing list