commit | e32bf6ead2ae610f5b318c4fbd1c926241fbc3b1 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Feb 11 05:53:02 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Feb 11 05:53:02 1998 +0000 |
tree | 251ce4cbcd01952ff73c88cf7125cd6b12d80f29 | |
parent | fccb68ef2a73246e141a59436fad5cfc1369604a [diff] |
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.)