[Python-Dev] Re: New sys.module_names attribute in Python 3.10: list of all stdlib modules

2021年1月27日 01:46:59 -0800

On 2021年1月27日 11:05:28 +1100
Steven D'Aprano <[email protected]> wrote:
> On Tue, Jan 26, 2021 at 12:08:03PM -0800, Brett Cannon wrote:
> > On Tue, Jan 26, 2021 at 1:26 AM Antoine Pitrou <[email protected]> wrote: 
> 
> [...]
> > > Disagreed. This is niche enough that it warrants a long but explicit
> > > name, rather than some ambiguous shortcut.
> > > 
> > 
> > I agree w/ Antoine that a more descriptive name for such a niche (but
> > useful!) attribute makes sense. 
> 
> This descriptive name is *literally incorrect*. By design, it doesn't 
> list modules. It only lists sub-packages and not sub-modules, to keep 
> the number of entries more managable.
> 
> (Personally, I don't think an extra hundred or two names makes that much 
> difference. Its going to be a big list one way or the other.)
> 
> So by the current rules, many stdlib modules are not included and the 
> name is inaccurate.
Ok, then "stdlib_package_names"? :-)
Regards
Antoine.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/NMDFLQDCXRQNUBMHTHTH37OMDPCCQYRZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to