Staging
v0.5.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
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.bzrignore -rw-r--r-- 554 bytes
.gitignore -rw-r--r-- 625 bytes
.hgeol -rw-r--r-- 929 bytes
.hgignore -rw-r--r-- 1.0 KB
.hgtags -rw-r--r-- 8.2 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 45.1 KB
README -rw-r--r-- 54.0 KB
aclocal.m4 -rw-r--r-- 8.3 KB
config.guess -rwxr-xr-x 41.9 KB
config.sub -rwxr-xr-x 34.9 KB
configure -rwxr-xr-x 425.0 KB
configure.ac -rw-r--r-- 134.6 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 34.4 KB
setup.py -rw-r--r-- 95.4 KB

README

back to top