https://docs.python.org/3/tutorial/modul...earch-path
python looks for modules/packages you try to import in different locations in particular order. it finds your logging.py and try to import it, but this result in error
now documentation states that
python looks for modules/packages you try to import in different locations in particular order. it finds your logging.py and try to import it, but this result in error
now documentation states that
Quote:When a module named spam is imported, the interpreter first searches for a built-in module with that name.
logging
is built-in module, so I am missing something in this case. maybe someone else will shed some light why this happens.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs