Message400108
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:13 | eric.smith | set | recipients:
+ eric.smith, cybergrind |
2021-08-22 22:55:13 | eric.smith | set | messageid: <1629672913.26.0.766598793866.issue44979@roundup.psfhosted.org> |
2021-08-22 22:55:13 | eric.smith | link | issue44979 messages |
2021-08-22 22:55:13 | eric.smith | create | |
|