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
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 5.9 KB
README.txt -rw-r--r-- 4.6 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.0 KB
conf.py -rw-r--r-- 5.6 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 35.7 KB
license.rst -rw-r--r-- 43.5 KB
make.bat -rw-r--r-- 3.8 KB

README.txt

back to top