TypeError: object.__init__() takes no parameters

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Sep 9 09:41:37 EDT 2011


Duncan Booth wrote:

> Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:

>> In Python 2.2, the default object constructor accepts, and ignores, any
>> parameters. In Python 2.3 on up, that becomes an error.
>> 
> More recently than that. It only became an error in 2.6:

For __init__, sure, but it was an error for __new__ back in 2.3. Sorry for
not being more clear.



-- 
Steven




More information about the Python-list mailing list