]> granicus.if.org Git - python/commit
Replace the run-time 'future-bytecode-stream-inspection' hack to find out
authorThomas Wouters <thomas@python.org>
Sun, 27 Aug 2000 20:31:27 +0000 (20:31 +0000)
committerThomas Wouters <thomas@python.org>
Sun, 27 Aug 2000 20:31:27 +0000 (20:31 +0000)
commitdd13e4f91ff2d8824e852afaec59d95d7dd409b3
tree89497ccf5d8b6307d7b32bb71a8142c00b494bfa
parente868211e106d4da348925e1c1bd1ea62b3560721
Replace the run-time 'future-bytecode-stream-inspection' hack to find out
how 'import' was called with a compiletime mechanism: create either a tuple
of the import arguments, or None (in the case of a normal import), add it to
the code-block constants, and load it onto the stack before calling
IMPORT_NAME.
Python/ceval.c
Python/compile.c
Python/import.c