[Tutor] __init__ arguments storage
Rob Kirkpatrick
robert.d.kirkpatrick at gmail.com
Sat Sep 20 19:32:54 CEST 2008
Hi All,
In between an object's creation and call to __init__, where are the __init__
arguments stored? Is there a class dictionary that init uses to initialize
the instance? I tried printing Class.__init__, but they aren't in there.
The reason I ask is that I was trying to track down a bug where it looked
like an argument was being mis-passed and I wanted to use pdb to see how it
was handled pre- and post-init.
Cheers,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080920/1a361865/attachment.htm>
More information about the Tutor
mailing list