Accessing an instance's __init__ args from outside the class

Ulrich Petri ulope at gmx.de
Wed Jul 16 00:29:04 CEST 2003


"Alexander Eberts" <alex_eberts at videotron.ca> schrieb im Newsbeitrag
news:RKCQa.27757$O55.714325 at wagner.videotron.net...
> Duncan,
>
> Thanks for your response - much appreciated. Do you know how the python
> interpreter handles *args and **kwargs passed to a class's __init__
method?
> (maybe the better question is "what section in the python docs describes
how
> class args are handled" :)
>

They are handled exactly as they would be in any other method. It seems you
have a bit of a misconception on how the __init__ method works!?

Ciao Ulrich

PS: To post an answer above the aswered text is not exactly liked on the
(use)net.






More information about the Python-list mailing list