summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-02-13 16:30:16 +0000
committerGuido van Rossum <guido@python.org>2003-02-13 16:30:16 +0000
commit327d9a0b571b3bef39ee3f951b501c75ad02175c (patch)
tree572d9007003edf418abb7dd4c4022f98fb1b1d7e /Python/pythonrun.c
parent0c584c35f31eaa1a17247b157c52a8d108820976 (diff)
downloadcpython-327d9a0b571b3bef39ee3f951b501c75ad02175c.tar.gz
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__.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions