On Sat, 22 Dec 2007 23:01:50 -0700, Steven Bethard wrote:
> Steven D'Aprano wrote:
>> 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
On Dec 23, 5:03 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> 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__
Steven D'Aprano wrote:
> 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, som
On Dec 22, 11:03 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> 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.
>
Only if __new__ returns an object of the type passed i
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:
>>> class Spam(o