While working on a script in Python, I came accross this built-in method part of the sys module sys.flags
which returns a tuple of flags used to run the python script. The output looks like:
(debug=0, inspect=0, interactive=0, optimize=1, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False, utf8_mode=0)
I'm confused, as I thought you could not embed an assignment within another expression in Python, and so far I haven't been able to find an answer on Google that explains the behavior of this tuple.