]> granicus.if.org Git - python/commitdiff
Rewrite item a bit
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 15 Sep 2008 13:08:32 +0000 (13:08 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 15 Sep 2008 13:08:32 +0000 (13:08 +0000)
Doc/whatsnew/2.6.rst

index 94124fa8f1ad232bd4cd12c25f85ea471bb67c1d..7a9035eae68e665ef6d2386aefa21dd8a94404b5 100644 (file)
@@ -3156,9 +3156,12 @@ 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`.
+* :meth:`object.__init__` previously accepted arbitrary arguments and
+  keyword arguments, ignoring them.  In Python 2.6, this is no longer
+  allowed and will result in a :exc:`TypeError`.  This will affect 
+  :meth:`__init__` methods that end up calling the corresponding 
+  method on :class:`object` (perhaps through using :func:`super`).
+  See :issue:`1683368` for discussion.
 
 * The :class:`Decimal` constructor now accepts leading and trailing
   whitespace when passed a string.  Previously it would raise an