comparison Python/sysmodule.c @ 9050:f3ebdb2274e4 legacy-trunk

__file__ used to be always set to the .pyc (or .pyo) file, even if that file in fact did not exist or at least was not used. Change this so that __file__ is *only* set to the .pyc/.pyo file when it actually read the code object from it; otherwise __file__ is set to the .py file.
author Guido van Rossum <guido@python.org>
date Tue, 25 Aug 1998 18:44:34 +0000
parents 44baef8ab5c8
children 81574e4646b4
comparison
equal deleted inserted replaced
9049:cbf72b2210ae 9050:f3ebdb2274e4