[Python-checkins] r66467 - python/trunk/Doc/whatsnew/2.6.rst
benjamin.peterson
python-checkins at python.org
Mon Sep 15 04:53:23 CEST 2008
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
Modified:
python/trunk/Doc/whatsnew/2.6.rst
Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst (original)
+++ python/trunk/Doc/whatsnew/2.6.rst Mon Sep 15 04:53:23 2008
@@ -3156,6 +3156,10 @@
before adding elements from the iterable. This change makes the
behavior match ``list.__init__()``.
+* :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`.
+
* The :class:`Decimal` constructor now accepts leading and trailing
whitespace when passed a string. Previously it would raise an
:exc:`InvalidOperation` exception. On the other hand, the
More information about the Python-checkins
mailing list