This is a static archive of the Python wiki, which was retired in February 2026 due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

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


CategoryIdeas


2026-02-14 16:14