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

Class S

Lib/idlelib/idle_test/test_run.py:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85# StdioFile tests.
86
87class S(str):
88 def __str__(self):
89 return '%s:str' % type(self).__name__
90 def __unicode__(self):
91 return '%s:unicode' % type(self).__name__
92 def __len__(self):
93 return 3
94 def __iter__(self):
95 return iter('abc')
96 def __getitem__(self, *args):
97 return '%s:item' % type(self).__name__
98 def __getslice__(self, *args):
99 return '%s:slice' % type(self).__name__
100
101
102class MockShell:

Callers 3

test_writeMethod · 0.70
test_writelinesMethod · 0.70

Calls

no outgoing calls

Tested by 3

test_writeMethod · 0.56
test_writelinesMethod · 0.56