]> granicus.if.org Git - python/commit
SF patch #685738 by Michael Stone.
authorGuido van Rossum <guido@python.org>
Thu, 13 Feb 2003 16:30:16 +0000 (16:30 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 13 Feb 2003 16:30:16 +0000 (16:30 +0000)
commit298e4214538a7196c27ec22b1f01506fdb3c4039
tree6d75d061df43965e30b132c378802c5488fd8f64
parent0c016a9590b3da47f19420d0616e0c72cae19abf
SF patch #685738 by Michael Stone.

This changes the default __new__ to refuse arguments iff tp_init is the
default __init__ implementation -- thus making it a TypeError when you
try to pass arguments to a constructor if the class doesn't override at
least __init__ or __new__.
Lib/copy_reg.py
Lib/test/test_descr.py
Misc/NEWS
Objects/typeobject.c