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

Class StringCompat

Lib/test/test_str.py:1734–1738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1732 )
1733
1734 class StringCompat:
1735 def __init__(self, x):
1736 self.x = x
1737 def __str__(self):
1738 return self.x
1739
1740 self.assertEqual(
1741 str(StringCompat('__str__ compatible objects are recognized')),

Callers 1

test_constructorMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_constructorMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…