Author rhettinger
Recipients eric.smith, nanjekyejoannah, pablogsal, rhettinger, serhiy.storchaka, terry.reedy
Date 2022-01-06.21:12:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641503551.19.0.812845880517.issue46280@roundup.psfhosted.org>
In-reply-to
Content
#632 should be left as is.  Technically, the second "field++" is a dead store.  However, it is harmless and has some advantages.  It keeps the the assignments parallel and it reduces the chance of introducing a new bug if a new field is added (i.e. like one of the reasons we use trailing commas on multiline dicts and lists).

    PyStructSequence_SET_ITEM(int_info, field++,
                              PyLong_FromLong(PyLong_SHIFT));
    PyStructSequence_SET_ITEM(int_info, field++,
                              PyLong_FromLong(sizeof(digit)));
History
Date User Action Args
2022-01-06 21:12:31rhettingersetrecipients: + rhettinger, terry.reedy, eric.smith, serhiy.storchaka, pablogsal, nanjekyejoannah
2022-01-06 21:12:31rhettingersetmessageid: <1641503551.19.0.812845880517.issue46280@roundup.psfhosted.org>
2022-01-06 21:12:31rhettingerlinkissue46280 messages
2022-01-06 21:12:31rhettingercreate