warning when importing a file from directoty
I see many people who have their project something like this: ``` directory/ some_module.py main.py ``` and in main.py they do ``` from some_module import some_function ``` while they have a library named `some_module` that is installed from pip, and they can't figure out why Python says that there is no such function. I would recommend adding a warning like "ImportWarning: The same module exists in this folder and site-packages a well." so people won't be confused why this function doesn't exist, it happens a lot for beginners.
Hello, On Tue, 09 Feb 2021 10:13:06 -0000 "Jonatan " <pybots.il@gmail.com> wrote:
Someone?
Sure. You might be using this mailing list with a web interface or something, where you see a message, hit reply button, type a few words and think people will see just what you had before your eyes. That's not how email in general, and mailing lists in particular, work. If you reply to something, you need to quote context of what you reply to, because people don't see before their eyes what you have. This issue also applies to a few other people posting here. Good luck. -- Best regards, Paul mailto:pmiscml@gmail.com
participants (2)
-
Jonatan
-
Paul Sokolovsky