MCPcopy
hub / github.com/tornadoweb/tornado / exec_in

Function exec_in

tornado/util.py:137–144  ·  view source on GitHub ↗
(
    code: Any, glob: Dict[str, Any], loc: Optional[Optional[Mapping[str, Any]]] = None
)

Source from the content-addressed store, hash-verified

135
136
137def exec_in(
138 code: Any, glob: Dict[str, Any], loc: Optional[Optional[Mapping[str, Any]]] = None
139) -> None:
140 if isinstance(code, str):
141 # exec(string) inherits the caller's future imports; compile
142 # the string first to prevent that.
143 code = compile(code, "<string>", "exec", dont_inherit=True)
144 exec(code, glob, loc)
145
146
147def raise_exc_info(

Callers 3

parse_config_fileMethod · 0.90
generateMethod · 0.90

Calls

no outgoing calls

Tested by 1