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

Class ClassWith__str__

Lib/test/test_print.py:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34# Class used to test __str__ and print
35class ClassWith__str__:
36 def __init__(self, x):
37 self.x = x
38
39 def __str__(self):
40 return self.x
41
42
43class TestPrint(unittest.TestCase):

Callers 1

test_printMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_printMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…