PYTHON(1)
π PYTHON(1) π
ok bestie, welcome to the manual page for Python β specifically the vtkPython 3.9.0+ situation, a.k.a. the VTK-Wrapper for Python. It lives in the User Commands section of the manual, and it's genuinely iconic. Sit down, grab a strawberry π, and let's get into it.
πΈ NAME πΈ
Python β manual page for vtkPython 3.9.0+ : VTK-Wrapper for Python
β¨ DESCRIPTION β¨
okay so here's the whole vibe, the entire layout, the moment:
usage: /usr/bin/../lib/x86_64-linux-gnu/vtkpython [option] ... [-c cmd |
-m mod | file | -] [arg] ...
That's the shape of it. Options, arguments, and (yes) the corresponding environment variables. Let's go through every single one, no skipping, periodt. π
-bβ issue warnings aboutstr(bytes_instance),str(bytearray_instance)and comparing bytes/bytearray withstr. And if you're feeling extra,-bbissues errors instead. π-Bβ don't write.pycfiles on import; also works viaPYTHONDONTWRITEBYTECODE=x-c cmdβ program passed in as string (this terminates the option list, so be careful bestie)-dβ debug output from parser; alsoPYTHONDEBUG=x-Eβ ignorePYTHON*environment variables (such asPYTHONPATH)-hβ print this help message and exit (also--help)-iβ inspect interactively after running script; forces a prompt even if stdin does not appear to be a terminal; alsoPYTHONINSPECT=x-Iβ isolate Python from the user's environment (implies-Eand-s)-m modβ run library module as a script (terminates the option list)-Oβ remove assert and__debug__-dependent statements; add.opt-1before the.pycextension; alsoPYTHONOPTIMIZE=x-OOβ do the-Ochanges and also discard docstrings; add.opt-2before the.pycextension-qβ don't print version and copyright messages on interactive startup-sβ don't add the user site directory tosys.path; alsoPYTHONNOUSERSITE-Sβ don't implyimport siteon initialization-uβ force the stdout and stderr streams to be unbuffered; this option has no effect on stdin; alsoPYTHONUNBUFFERED=x-vβ verbose (trace import statements); alsoPYTHONVERBOSE=x. You can supply it multiple times to increase verbosity π-Vβ print the Python version number and exit (also--version). When given twice, print more information about the build-W argβ warning control; arg isaction:message:category:module:lineno; alsoPYTHONWARNINGS=arg-xβ skip first line of source, allowing use of non-Unix forms of#!cmd-X optβ set an implementation-specific option. The following options are available:-X faulthandler: enable faulthandler-X oldparser: enable the traditional LL(1) parser; alsoPYTHONOLDPARSER-X showrefcount: output the total reference count and number of used memory blocks when the program finishes or after each statement in the interactive interpreter. This only works on debug builds-X tracemalloc: start tracing Python memory allocations using thetracemallocmodule. By default, only the most recent frame is stored in a traceback of a trace. Use-X tracemalloc=NFRAMEto start tracing with a traceback limit ofNFRAMEframes-X importtime: show how long each import takes. It shows module name, cumulative time (including nested imports) and self time (excluding nested imports). Note that its output may be broken in multi-threaded application. Typical usage ispython3 -X importtime -c 'import asyncio'-X dev: enable CPython's "development mode", introducing additional runtime checks which are too expensive to be enabled by default. Effect of the developer mode:- Add default warning filter, as
-W default - Install debug hooks on memory allocators: see the
PyMem_SetupDebugHooks()C function - Enable the
faulthandlermodule to dump the Python traceback on a crash - Enable asyncio debug mode
- Set the
dev_modeattribute ofsys.flagstoTrue io.IOBasedestructor logsclose()exceptions
- Add default warning filter, as
-X utf8: enable UTF-8 mode for operating system interfaces, overriding the default locale-aware mode.-X utf8=0explicitly disables UTF-8 mode (even when it would otherwise activate automatically)-X pycache_prefix=PATH: enable writing.pycfiles to a parallel tree rooted at the given directory instead of to the code tree
--check-hash-based-pycs always|default|neverβ control how Python invalidates hash-based.pycfilesfileβ program read from script file-β program read from stdin (default; interactive mode if a tty)arg ...β arguments passed to program insys.argv[1:]
π¦ Other environment variables π¦
these ones live outside the flags, they're just vibing in your shell π
PYTHONSTARTUP: file executed on interactive startup (no default)PYTHONPATH:':'-separated list of directories prefixed to the default module search path. The result issys.path.PYTHONHOME: alternate<prefix>directory (or<prefix>:<exec_prefix>). The default module search path uses<prefix>/lib/pythonX.X.PYTHONPLATLIBDIR: overridesys.platlibdir.PYTHONCASEOK: ignore case in'import'statements (Windows).PYTHONUTF8: if set to 1, enable the UTF-8 mode.PYTHONIOENCODING:Encoding[:errors]used for stdin/stdout/stderr.PYTHONFAULTHANDLER: dump the Python traceback on fatal errors.PYTHONHASHSEED: if this variable is set to'random', a random value is used to seed the hashes of str and bytes objects. It can also be set to an integer in the range[0,4294967295]to get hash values with a predictable seed.PYTHONMALLOC: set the Python memory allocators and/or install debug hooks on Python memory allocators. UsePYTHONMALLOC=debugto install debug hooks.PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the locale coercion behavior. UsePYTHONCOERCECLOCALE=warnto request display of locale coercion and locale compatibility warnings on stderr.PYTHONBREAKPOINT: if this variable is set to 0, it disables the default debugger. It can be set to the callable of your debugger of choice.PYTHONDEVMODE: enable the development mode.PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files.
π SEE ALSO π
The full documentation for Python is maintained as a Texinfo manual. If the info and Python programs are properly installed at your site, the command
info Python
should give you access to the complete manual. go get that lore bestie π«Ά
and that's the whole page!! mwah π this was Python 3.9.0+ from November 2020, filed under PYTHON(1) β slay, no cap, you ate this manual β¨π
π¦ where this page comes from
- debian bookworm: python3-vtk9 9.1.0+really9.1.0+dfsg2-5+deb12u1 Β· BSD-3-Clause
- debian trixie: python3-vtk9 9.3.0+dfsg1-4+b1 Β· BSD-3-Clause
- ubuntu jammy: python3-vtk9 9.1.0+really9.1.0+dfsg2-3build1 Β· BSD-3-Clause
- ubuntu noble: python3-vtk9 9.1.0+really9.1.0+dfsg2-7.1build3 Β· BSD-3-Clause
- ubuntu questing: python3-vtk9 9.3.0+dfsg1-4ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms