-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Open
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
sys.flags
is a PyStructSequence
. PyStructSequence
is similar to a named tuple, but it can have attributes that are not part of the sequence.
Currently, sys.flags.gil
is not a "sequence" attribute:
>>> import sys
>>> sys.flags
sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 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, warn_default_encoding=0, safe_path=False, int_max_str_digits=4300)
I think this was an oversight. We forgot to update the n_in_sequence
field from 18 to 19 in gh-116338:
Lines 3123 to 3128 in fda6bd8
static PyStructSequence_Desc flags_desc = { | |
"sys.flags", /* name */ | |
flags__doc__, /* doc */ | |
flags_fields, /* fields */ | |
18 | |
}; |
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error