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

Method __new__

Lib/test/test_descr.py:664–666  ·  view source on GitHub ↗
(mcls, name, bases, ns)

Source from the content-addressed store, hash-verified

662 class BMeta(AMeta):
663 @staticmethod
664 def __new__(mcls, name, bases, ns):
665 new_calls.append('BMeta')
666 return super().__new__(mcls, name, bases, ns)
667 @classmethod
668 def __prepare__(mcls, name, bases):
669 ns = super().__prepare__(name, bases)

Callers

nothing calls this directly

Calls 3

superClass · 0.85
appendMethod · 0.45
__new__Method · 0.45

Tested by

no test coverage detected