summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-15 02:53:23 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-15 02:53:23 (GMT)
commitc272362747131e821abe0bd241a16dea2b8c2751 (patch)
tree912a1bb9493f2ddee43aaeb09e46de394061d89b
parent9feab31d985fefcae8eb70c546ff090b72f066a0 (diff)
downloadcpython-c272362747131e821abe0bd241a16dea2b8c2751.zip
cpython-c272362747131e821abe0bd241a16dea2b8c2751.tar.gz
cpython-c272362747131e821abe0bd241a16dea2b8c2751.tar.bz2
mention that object.__init__ no longer takes arbitrary args and kwargs
-rw-r--r--Doc/whatsnew/2.6.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 5adf8d1..94124fa 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -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