]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Added PyImport_ExecCodeModuleEx(), which adds an extra parameter to
authorGuido van Rossum <guido@python.org>
Wed, 11 Feb 1998 05:53:02 +0000 (05:53 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 11 Feb 1998 05:53:02 +0000 (05:53 +0000)
commite32bf6ead2ae610f5b318c4fbd1c926241fbc3b1
tree251ce4cbcd01952ff73c88cf7125cd6b12d80f29
parentfccb68ef2a73246e141a59436fad5cfc1369604a
Added PyImport_ExecCodeModuleEx(), which adds an extra parameter to
pass it the true file.  This is used to set __file__ properly, instead
of believing what the code object carries with it.  (If the pointer
is NULL, the code object's co_filename is still used.)
Python/import.c