[issue44979] pathlib: support relative path construction

Eric V. Smith report at bugs.python.org
Sun Aug 22 18:55:13 EDT 2021


Eric V. Smith <eric at trueblade.com> added the comment:

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.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44979>
_______________________________________


More information about the Python-bugs-list mailing list