[Python-checkins] r66467 - python/trunk/Doc/whatsnew/2.6.rst
Nick Coghlan
ncoghlan at gmail.com
Mon Sep 15 13:31:01 CEST 2008
benjamin.peterson wrote:
> Author: benjamin.peterson
> Date: Mon Sep 15 04:53:23 2008
> New Revision: 66467
>
> Log:
> mention that object.__init__ no longer takes arbitrary args and kwargs
...
> +* :meth:`object.__init__` previously accepted arbitrary arguments and keyword
> + arguments. In Python 2.6, this is no longer allowed and will result in a
> + :exc:`TypeError`. See issue :issue:`1683368`.
That's a little too strong at this stage - if both __new__ and __init__
are overridden, then the stricter checking only emits Deprecation
Warnings in 2.6.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-checkins
mailing list