February 20, 2008

Python meta-programming: simple example

When you call a new-style class, the __new__ method is called with the user-supplied arguments, followed by the __init__ method with the same arguments.

I would like to modify the arguments after the __new__ method is called but before the __init__ method, somewhat like this:

Link Posted by Tim at February 20, 2008 08:53 PM | TrackBack