[Python-checkins] r66468 - python/trunk/Doc/whatsnew/2.6.rst
andrew.kuchling
python-checkins at python.org
Mon Sep 15 15:08:33 CEST 2008
Author: andrew.kuchling
Date: Mon Sep 15 15:08:32 2008
New Revision: 66468
Log:
Rewrite item a bit
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 15:08:32 2008
@@ -3156,9 +3156,12 @@
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
More information about the Python-checkins
mailing list