[issue42133] Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined

Brett Cannon report at bugs.python.org
Fri Oct 23 18:46:40 EDT 2020


New submission from Brett Cannon <brett at python.org>:

By making sure the stdlib can handle the case where __loader__ isn't defined but __spec__.parent is, eventually the former could be dropped for the latter.

----------
components: Library (Lib)
messages: 379486
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined
type: behavior
versions: Python 3.10

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


More information about the Python-bugs-list mailing list