Staging
v0.8.1
https://github.com/python/cpython
Revision 7427a79e12a418a76d4660799b1c75785b5ea46d authored by Gregory P. Smith on 22 October 2015, 20:09:50 UTC, committed by Gregory P. Smith on 22 October 2015, 20:09:50 UTC
properly to get the filename of its caller from the stack.  This allows it
to work if run in a frozen or embedded environment where the module's
.__file__ attribute does not match its code object's .co_filename.

This same much simpler always correct approach has already been deployed and
used widely in Python 3.4 per the issue referenced above.
1 parent 1256b3c
History
Tip revision: 7427a79e12a418a76d4660799b1c75785b5ea46d authored by Gregory P. Smith on 22 October 2015, 20:09:50 UTC
Issue #21709: Fix the logging module to not depend upon __file__ being set
Tip revision: 7427a79
File Mode Size
Python.asdl -rw-r--r-- 4.2 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 11.1 KB
asdl_c.py -rwxr-xr-x 40.4 KB
bitset.c -rw-r--r-- 1.0 KB
firstsets.c -rw-r--r-- 2.8 KB
grammar.c -rw-r--r-- 6.7 KB
grammar1.c -rw-r--r-- 1.2 KB
intrcheck.c -rw-r--r-- 2.5 KB
listnode.c -rw-r--r-- 1.2 KB
metagrammar.c -rw-r--r-- 2.4 KB
myreadline.c -rw-r--r-- 5.7 KB
node.c -rw-r--r-- 4.4 KB
parser.c -rw-r--r-- 11.5 KB
parser.h -rw-r--r-- 1.0 KB
parsetok.c -rw-r--r-- 7.7 KB
pgen.c -rw-r--r-- 17.4 KB
pgenmain.c -rw-r--r-- 3.7 KB
printgrammar.c -rw-r--r-- 2.9 KB
spark.py -rw-r--r-- 26.3 KB
tokenizer.c -rw-r--r-- 48.5 KB
tokenizer.h -rw-r--r-- 2.9 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top