This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients cybergrind, eric.smith
Date 2021-08-22.22:55:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
To be clear, by "file", you mean python source file, or I guess .pyc file if only that exists. I can't say I've given it much thought. What about built-in modules? Or frozen modules?

I'm not sure this is a great idea. In general, we've frowned on code that uses sys._getframe, and in particular that looks arbitrarily up the stack.

At the very least, you should find out if other python implementations can use this function.

I suggest bringing this up on the python-ideas mailing list.
Date User Action Args
2021-08-22 22:55:13eric.smithsetrecipients: + eric.smith, cybergrind
2021-08-22 22:55:13eric.smithsetmessageid: <>
2021-08-22 22:55:13eric.smithlinkissue44979 messages
2021-08-22 22:55:13eric.smithcreate