On 10/30/2015 9:15 PM, Terry Reedy wrote:
On 10/30/2015 12:29 PM, Laura Creighton wrote:
In a message of Fri, 30 Oct 2015 16:21:30 +0100, Michiel Overtoom writes:
Hi,

Laura wrote:
I think that it would be useful if IDLE spit out a warning

An ounce of prevention is worth a pound of cure. Maybe it's an idea
that IDLE gives a warning when you're trying to save a file with a
name that would shadow an existing module?

You might want to add that idea here:
https://bugs.python.org/issue25514

This is a different issue than IDLE avoiding clashes.  I opened
https://bugs.python.org/issue25522

A warning requires a list to check against.  I just suggested on
python-ideas the addition of a 'module' module, similar to the 'keyword'
module, that would have the needed lists and functions.

Guido pointed me to sys.builtin_module_names, which is needed for the issue above.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to