TypeError: object.__init__() takes no parameters

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Fri Sep 9 11:11:06 CEST 2011


Am 09.09.2011 10:33 schrieb Steven D'Aprano:

> Not nonsense. Merely a backward-incompatible change:

[1]


> In Python 2.2, the default object constructor accepts, and ignores, any
> parameters. In Python 2.3 on up, that becomes an error.

Thanks, I wasn't aware of that. My first contact with Python was with 2.3...

Thomas

[1] Another example why backward-incompatible change are bad. Why was it 
necessary in this case? :-(



More information about the Python-list mailing list