[Python-checkins] r66467 - python/trunk/Doc/whatsnew/2.6.rst

Benjamin Peterson musiccomposition at gmail.com
Tue Sep 16 00:14:35 CEST 2008


On Mon, Sep 15, 2008 at 6:31 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> 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.

Ok. Seems AMK is faster than me, though. :)

>
> Cheers,
> Nick.
>
> --
> Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
> ---------------------------------------------------------------
>            http://www.boredomandlaziness.org
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>



-- 
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."


More information about the Python-checkins mailing list