Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
class
HasBadAttr:
45
def
__new__(cls):
46
obj = super().__new__(cls)
47
setattr(cls, cls.methname, BadDescr())
48
return
obj
49
50
51
class
IndexLike(WithDunder):
Callers
3
test_heaptype_with_tp_vectorcall
Method · 0.45
with_val
Method · 0.45
with_exc
Method · 0.45
Calls
2
super
Class · 0.85
BadDescr
Class · 0.70
Tested by
no test coverage detected