Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ A
Class
A
Lib/test/test_class.py:455–457 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
453
_testlimitedcapi = import_helper.import_module(
'_testlimitedcapi'
)
454
455
class
A:
456
def
__init__(self):
457
self.attr = 1
458
459
a = A()
460
self.assertEqual(_testlimitedcapi.object_hasattrstring(a, b
"attr"
), 1)
Callers
6
testHasAttrString
Method · 0.70
testSFBug532646
Method · 0.70
testForExceptionsRaisedInInstanceGetattr2
Method · 0.70
testHashComparisonOfMethods
Method · 0.70
testSetattrWrapperNameIntern
Method · 0.70
testObjectAttributeAccessErrorMessages
Method · 0.70
Calls
1
property
Class · 0.85
Tested by
6
testHasAttrString
Method · 0.56
testSFBug532646
Method · 0.56
testForExceptionsRaisedInInstanceGetattr2
Method · 0.56
testHashComparisonOfMethods
Method · 0.56
testSetattrWrapperNameIntern
Method · 0.56
testObjectAttributeAccessErrorMessages
Method · 0.56