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

Method __new__

Lib/test/test_descr.py:731–733  ·  view source on GitHub ↗
(mcls, *args, **kwargs)

Source from the content-addressed store, hash-verified

729 prepare_calls = [] # to track __prepare__ calls
730 class ANotMeta:
731 def __new__(mcls, *args, **kwargs):
732 new_calls.append('ANotMeta')
733 return super().__new__(mcls)
734 @classmethod
735 def __prepare__(mcls, name, bases):
736 prepare_calls.append('ANotMeta')

Callers

nothing calls this directly

Calls 3

superClass · 0.85
appendMethod · 0.45
__new__Method · 0.45

Tested by

no test coverage detected