PYTHON3(1)

πŸ“¦
version 1.6.6 Β· 5 versions
, in ubuntu stonking

πŸ’– PYTHON3 πŸ’–

bestie. okay. the python3 page from the receptor-python-worker manual, section 1. that's the vibe. this is the Receptor worker helper and she is booked and busy ✨


🌸 NAME 🌸

python3 β€” Receptor worker helper 🫢


✨ DESCRIPTION ✨

the way it works is basically this:

usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...

Options (and corresponding environment variables):

πŸŽ€ the options, all of them, no skips, periodt

  • -b β€” throws warnings when you convert bytes/bytearray to str, and when you compare bytes/bytearray with str, or bytes with int. and if you want FULL drama mode, -bb turns those into straight-up errors πŸ’€
  • -B β€” do NOT write .pyc files on import, period. also settable as PYTHONDONTWRITEBYTECODE=x 🧚
  • -c cmd β€” the program is passed in as a string. heads up: this terminates the option list, so everything after it is not an option anymore βœ‹
  • -d β€” turn on parser debugging output. for experts only, and lowkey it only works on debug builds. also PYTHONDEBUG=x πŸ”₯
  • -E β€” ignore all the PYTHON* environment variables (like PYTHONPATH). she does not see them. she does not know them πŸ™ˆ
  • -h β€” print this help message and dip. also available as -? or --help πŸ’…
  • -i β€” inspect interactively after running the script. it forces a prompt even if stdin does not appear to be a terminal. also PYTHONINSPECT=x ⭐
  • -I β€” isolate Python from the user's environment. this implies -E, -P and -s. she's in her own little bubble, main character energy πŸ¦‹
  • -m mod β€” run a library module as a script. and yes, this terminates the option list too ✨
  • -O β€” remove assert and __debug__-dependent statements, and add .opt-1 before the .pyc extension. also PYTHONOPTIMIZE=x πŸ‘‘
  • -OO β€” does all the -O changes AND discards docstrings, plus adds .opt-2 before the .pyc extension. double optimized, double iconic πŸ’œ
  • -P β€” don't prepend a potentially unsafe path to sys.path. also PYTHONSAFEPATH 🌈
  • -q β€” don't print the version and copyright messages on interactive startup. quiet girl era 🀫
  • -s β€” don't add the user site directory to sys.path. also PYTHONNOUSERSITE=x πŸ“
  • -S β€” don't imply 'import site' on initialization 🌸
  • -u β€” force the stdout and stderr streams to be unbuffered. ngl this option has no effect on stdin though. also PYTHONUNBUFFERED=x πŸ’–
  • -v β€” verbose: it traces import statements. also PYTHONVERBOSE=x. and you can supply it multiple times to increase verbosity, because apparently one -v was never enough for her 😭
  • -V β€” print the Python version number and exit. also --version. and if you give it twice, it prints more information about the build. she's showing off πŸŽ€
  • -W arg β€” warning control, where arg is action:message:category:module:lineno. also PYTHONWARNINGS=arg ✨
  • -x β€” skip the first line of source, which lets you use non-Unix forms of #!cmd πŸ¦‹
  • -X opt β€” set an implementation-specific option πŸ‘‘
  • --check-hash-based-pycs always|default|never β€” control how Python invalidates hash-based .pyc files. three choices, no in-between, choose your fighter πŸ’…
  • --help-env β€” print help about Python environment variables and exit 🌸
  • --help-xoptions β€” print help about implementation-specific -X options and exit πŸ’œ
  • --help-all β€” print complete help information and exit. the whole entire lore, bestie πŸ™ˆ

🌟 Arguments 🌟

  • file β€” program read from script file πŸ“„
  • - β€” program read from stdin (this is the default; interactive mode if it's a tty) πŸ’–
  • arg ... β€” arguments passed to the program in sys.argv[1:] ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

so the full documentation for python3 is maintained as a Texinfo manual. and if info and python3 are properly installed at your site, this command:

info python3

should give you access to the complete manual. iykyk πŸ’…βœ¨


okay that's the whole page, no cap. this one's from python3 1.6.6, dated June 2026, out of the PYTHON3(1) manual like we said at the top 🫢 go run something cute, bestie πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from