CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 12:17:42 GMT
server: Apache/2.4.41 (Ubuntu)
vary: Cookie,User-Agent,Accept-Encoding
set-cookie: MOIN_SESSION_443_ROOT_moin=981889b8598330b1c660c7374dc8f08ba55923ea; Expires=Thu, 31-Jul-2025 13:17:00 GMT; Max-Age=3600; Secure; Path=/
content-encoding: gzip
content-type: text/html; charset=utf-8
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
TrackingSourceLocation - Python Wiki
The CPython interpreter currently tracks the source location of a code object in the co_filename attribute. In certain cases, this is a relative file name, which may break if the current directory changes. The objective of this project is to make sure that co_filename is always an absolute path, or to allow otherwise to infer the original location of the source file. In addition, if the module was imported from a byte code file, a mechanism should be provided to also find out what that byte code file was.
label:NeedsTest
TrackingSourceLocation (last edited 2012-06-10 08:50:06 by techtonik)
Unable to edit the page? See the FrontPage for instructions.