mirror of
https://github.com/python/cpython.git
synced 2026-05-22 04:13:22 -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__.