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

Class S

Lib/test/test_descr.py:5962–5963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5960 def test_issue24097(self):
5961 # Slot name is freed inside __getattr__ and is later used.
5962 class S(str): # Not interned
5963 pass
5964 class A:
5965 __slotnames__ = [S('spam')]
5966 def __getattr__(self, attr):

Callers 3

test_slicesMethod · 0.70
AClass · 0.70
__getattr__Method · 0.70

Calls

no outgoing calls

Tested by 2

test_slicesMethod · 0.56
__getattr__Method · 0.56