Sam writes 8/5/2022

Practical Python Modules

Read Original

This article discusses the advantages of structuring Python projects to run as modules using `python -m`. It covers how this approach enables sane relative imports, avoids naming conflicts (like with a local `types.py`), and details key restrictions regarding working directory and import syntax that developers should understand.

Practical Python Modules

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week