mirror of
https://github.com/python/cpython.git
synced 2026-05-23 21:02:58 -04:00
298e421453
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__.