]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
mention that object.__init__ no longer takes arbitrary args and kwargs
authorBenjamin Peterson <benjamin@python.org>
Mon, 15 Sep 2008 02:53:23 +0000 (02:53 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 15 Sep 2008 02:53:23 +0000 (02:53 +0000)
Doc/whatsnew/2.6.rst

index 5adf8d1de02e29c5f987448940c581b777bb6e9e..94124fa8f1ad232bd4cd12c25f85ea471bb67c1d 100644 (file)
@@ -3156,6 +3156,10 @@ that may require changes to your code:
   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