Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
newline_and_indent_event
Method · 0.95
test_set_lo
Method · 0.80
Calls
no outgoing calls
Tested by
1
test_set_lo
Method · 0.64