[Python-ideas] Beginners accidentally shadow module names due to different expectation of the resolution order for module imports

2021-11-02 Thread Florian Wetschoreck
Hello everyone: The scenario/observation: Beginners sometimes create scripts with the name of a package e.g. pandas.py or seaborn.py in order to test something. Later, they create and run another script or Jupyter Notebook in the same folder which contains e.g. "import seaborn as sns" where the im

[Python-ideas] Re: Beginners accidentally shadow module names due to different expectation of the resolution order for module imports

2021-11-02 Thread Chris Angelico
On Wed, Nov 3, 2021 at 1:39 AM Florian Wetschoreck wrote: > I guess, one potential solution would be to change the import resolution > order. But of course, this is a breaking change (at least in implicit > semantics - not sure if it will actually lead to too many real-world problems > - but pr