sys.flags
The struct sequence flags exposes the status of command line flags. The attributes are read only.
attribute | flag |
---|---|
debug | -d |
inspect | -i |
interactive | -i |
optimize |
-O or -OO
|
dont_write_bytecode | -B |
no_user_site | -s |
no_site | -S |
ignore_environment | -E |
verbose | -v |
bytes_warning | -b |
quiet | -q |
hash_randomization | -R |
Changed in version 3.2: Added quiet
attribute for the new -q
flag.
New in version 3.2.3: The hash_randomization
attribute.
Changed in version 3.3: Removed obsolete division_warning
attribute.
Please login to continue.