summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-03-23 04:58:42 +0000
committerGuido van Rossum <guido@python.org>2007-03-23 04:58:42 +0000
commit143b5640593528a074cc8b9bff8607c829f58b6a (patch)
tree707550918507f4e898da9239631d4b63e2dc29ee /Misc
parent82730f8d11050a567c6db88c91e7d788d8048e09 (diff)
downloadcpython-git-143b5640593528a074cc8b9bff8607c829f58b6a.tar.gz
- Bug #1683368: The object.__init__() and object.__new__() methods are
now stricter in rejecting excess arguments. The only time when either allows excess arguments is when it is not overridden and the other one is. For backwards compatibility, when both are overridden, it is a deprecation warning (for now; maybe a Py3k warning later). When merging this into 3.0, the warnings should become errors. Note: without the change to string.py, lots of spurious warnings happen. What's going on there?
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 8 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 064e01d6cf..fdada8da38 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1,4 +1,4 @@
-+++++++++++
+__init+++++++++++
Python News
+++++++++++
@@ -17,6 +17,13 @@ Core and builtins
- Remove unused file Python/fmod.c.
+- Bug #1683368: The object.__init__() and object.__new__() methods are
+ now stricter in rejecting excess arguments. The only time when
+ either allows excess arguments is when it is not overridden and the
+ other one is. For backwards compatibility, when both are
+ overridden, it is a deprecation warning (for now; maybe a Py3k
+ warning later).
+
- Patch #1675423: PyComplex_AsCComplex() now tries to convert an object
to complex using its __complex__() method before falling back to the
__float__() method. Therefore, the functions in the cmath module now