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

Method parse

Lib/test/test_import/__init__.py:302–307  ·  view source on GitHub ↗
(cls, text)

Source from the content-addressed store, hash-verified

300
301 @classmethod
302 def parse(cls, text):
303 raw = json.loads(text)
304 mod = raw['module']
305 mod['__spec__'] = types.SimpleNamespace(**mod['__spec__'])
306 raw['module'] = types.SimpleNamespace(**mod)
307 return cls(**raw)
308
309 @classmethod
310 def from_subinterp(cls, name, interpid=None, *, pipe=None, **script_kwds):

Callers 2

_from_subinterpMethod · 0.45
parseMethod · 0.45

Calls 2

clsClass · 0.50
loadsMethod · 0.45

Tested by

no test coverage detected