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

Method set_code

Lib/idlelib/pyparse.py:131–134  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

129 self.tabwidth = tabwidth
130
131 def set_code(self, s):
132 assert len(s) == 0 or s[-1] == '\n'
133 self.code = s
134 self.study_level = 0
135
136 def find_good_parse_start(self, is_char_in_string):
137 """

Callers 3

__init__Method · 0.95
test_set_loMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_set_loMethod · 0.64