Skip to content

Commit 7e6d542

Browse files
committed
undo errant increase in sys.flags tuple fields from the lazy_imports PR and mention that in a comment to avoid it recurring
1 parent 260e941 commit 7e6d542

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/sysmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3511,7 +3511,9 @@ static PyStructSequence_Desc flags_desc = {
35113511
"sys.flags", /* name */
35123512
flags__doc__, /* doc */
35133513
flags_fields, /* fields */
3514-
19 /* NB - do not increase. new fields are not tuple fields. GH-122575 */
3514+
18 /* NB - do not increase beyond 3.14's value of 18. */
3515+
// New sys.flags fields should NOT be tuple addressable per
3516+
// https://github.com/python/cpython/issues/122575#issuecomment-2416497086
35153517
};
35163518

35173519
static void

0 commit comments

Comments
 (0)