MCPcopy Create free account
hub / github.com/python/cpython / __new__

Method __new__

Lib/test/test_capi/test_number.py:45–48  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

43
44class HasBadAttr:
45 def __new__(cls):
46 obj = super().__new__(cls)
47 setattr(cls, cls.methname, BadDescr())
48 return obj
49
50
51class IndexLike(WithDunder):

Callers 3

with_valMethod · 0.45
with_excMethod · 0.45

Calls 2

superClass · 0.85
BadDescrClass · 0.70

Tested by

no test coverage detected