Lines Matching refs:code
272 # load the module's code, or fetch the module itself
285 ispkg, code, values = result
286 # did get_code() return an actual module? (rather than a code object)
287 is_module = isinstance(code, _ModuleType)
289 # use the returned module, or create a new one to exec code into
291 module = code
299 # insert additional values into the module (before executing the code)
305 # execute the code within the module's namespace
308 exec code in module.__dict__
316 # the "exec code in module.__dict__" played games on us.
371 """Find and retrieve the code for the given module.
390 * The second item is the code object for the module (it will be
395 inserted into new module before the code object is executed. This
396 is provided in case the module's code expects certain values (such
418 The file specified by <pathname> is compiled to a code object and
428 code = __builtin__.compile(codestring, pathname, 'exec')
430 # try to cache the compiled code
438 marshal.dump(code, f)
444 return code
550 code = self._import_pathname(_os_path_join(submodule_path, modname), fqname)
551 if code is not None:
552 return code
587 code = None
593 code = marshal.load(f)
595 if code is None:
597 code = _compile(file, t_py)
599 return 0, code, { '__file__' : file }
720 # likely to want to change. I have a feeling that a lot of the code