I wrote about the first big investigation PR I did for Werkzeug, back in 2018. Now that we support Python 3.10+, I can replace it with one simple line of code. Here's how to detect if `python` was run with the `-m` option: davidism.com/python-args/

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mas.to/users/davidism/statuses/116010272062334604 on your instance and quote it. (Note that quoting is not supported in Mastodon.)