Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ StrSubclass
Class
StrSubclass
Lib/test/test_compare.py:387–388 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
385
def
test_str_subclass(self):
386
""
"Compare instances of str and a subclass."
""
387
class
StrSubclass(str):
388
pass
389
390
s1 = str(
"a"
)
391
s2 = str(
"b"
)
Callers
1
test_str_subclass
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_str_subclass
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…