Python -m

python -m lets you run modules as scripts. If your module is just one .py file it’ll be executed (which usually means code under if __name_…

Similar

Python context managers

The primary benefit from subscribing to LWN is helping to keep us publishing, but, beyond that, subscribers get immediate access to all site content and access to a number of extra site features. Please sign up today!

Read more »