Fortunately for, you :) , all this argument is not against the feature per se but only against its use to blindly filter module lists for automated bug reports.

On 26.01.2021 1:34, Victor Stinner wrote:
On Mon, Jan 25, 2021 at 11:22 PM Ivan Pozdeev via Python-Dev
<python-dev@python.org> wrote:
That's not possible.

Stdlib can be arranged any way a user/maintainer wishes (zipped stdlib and virtual 
environments are just two examples), so there's no way to tell if the module's location 
is "right".
Dowstream changes are also standard practice so there's no way to verify a 
module's contents, either.

As such, there's no way to tell if any given module being imported is a 
standard or a 3rd-party one.
By the way, IMO it's also a legit use case on an old Python version to
override a stdlib module with a patched or more recent version, to get
a bugfix for example ;-) Even if it's an uncommon use case, it can
solve some practical issues.

Victor

--
Regards,
Ivan
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/FVVPLGWDAKURT4VSTHD746QJ6LG2MQDR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to