MCPcopy Index your code
hub / github.com/python/cpython / D

Class D

Lib/test/test_class.py:767–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765
766 # Class with both `__init__` & `__new__` method overridden
767 class D:
768 def __new__(cls, *args, **kwargs):
769 super().__new__(cls, *args, **kwargs)
770 def __init__(self, *args, **kwargs):
771 super().__init__(*args, **kwargs)
772
773 error_msg = r'object.__new__\(\) takes exactly one argument \(the type to instantiate\)'
774

Callers 1

Calls

no outgoing calls

Tested by 1