MCPcopy 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)

Calls 1

propertyClass · 0.85