summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-15 13:08:32 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-09-15 13:08:32 (GMT)
commit687dfd20d663c57ae90bf9b923bb558fa45bb34c (patch)
treeb37f7a37ce801c76f8513080bcce7b2d1e252653 /Doc/whatsnew
parentc272362747131e821abe0bd241a16dea2b8c2751 (diff)
downloadcpython-687dfd20d663c57ae90bf9b923bb558fa45bb34c.zip
cpython-687dfd20d663c57ae90bf9b923bb558fa45bb34c.tar.gz
cpython-687dfd20d663c57ae90bf9b923bb558fa45bb34c.tar.bz2
Rewrite item a bit
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/2.6.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 94124fa..7a9035e 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -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