]> granicus.if.org Git - python/commit
- Bug #1683368: The object.__init__() and object.__new__() methods are
authorGuido van Rossum <guido@python.org>
Fri, 23 Mar 2007 04:58:42 +0000 (04:58 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 23 Mar 2007 04:58:42 +0000 (04:58 +0000)
commit143b5640593528a074cc8b9bff8607c829f58b6a
tree707550918507f4e898da9239631d4b63e2dc29ee
parent82730f8d11050a567c6db88c91e7d788d8048e09
- 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?
Lib/string.py
Misc/NEWS
Objects/typeobject.c