cmdxray / commands / python

What does python do?

the Python interpreter.

▸ Explain your own python command →

python examples, explained

$ python -m venv .venv

  • pythonthe Python interpreter
  • -mrun the named library module as a script
  • venvvalue for -m
  • .venvan argument passed to the command

$ python -u -c 'print(1)'

  • pythonthe Python interpreter
  • -uforce stdout/stderr to be unbuffered
  • -crun the given program passed as a string
  • print(1)value for -c

python flags & options

-mrun the named library module as a script
-crun the given program passed as a string
-idrop into interactive mode after running the script
-uforce stdout/stderr to be unbuffered
-Oenable basic optimizations (assert stripped)
-Bdon't write .pyc bytecode files
-Eignore PYTHON* environment variables
--versionprint the Python version and exit

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.