
Jan. 27, 2021
1:40 a.m.
On Tue, Jan 26, 2021 at 10:56:57AM +0100, Victor Stinner wrote:
On Tue, Jan 26, 2021 at 12:44 AM Steven D'Aprano <steve@pearwood.info> wrote:
[...]
Your first instinct that it is too long is correct. Just call it "stdlib" or "stdlib_names". The fact that it is a frozen set of module names will be obvious from just looking at it, and there is no need for the name to explain everything about it. We have:
The sys module already has a sys.modules attribute, and so sys.module_names sounds like "give me the name of all imported modules": sys.module.keys().
Then its a good thing I didn't propose calling it "module_names" :-) -- Steve