This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petr.viktorin
Recipients jdemeyer, petr.viktorin, vstinner
Date 2020-02-18.12:10:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582027814.19.0.789498909219.issue39611@roundup.psfhosted.org>
In-reply-to
Content
The current return type already is Py_ssize_t, exactly for the reason you mention – compatibility with all other "argument count" values in Python. (It would be more correct to use unsigned, but that ship has sailed.)

The *argument* type is unsigned size_t, though: unsigned is the correct type for for bit fields. Also, the "nargsf" value should never be directly used as argument count; making it a different type tends to trigger nice compiler warnings.
History
Date User Action Args
2020-02-18 12:10:14petr.viktorinsetrecipients: + petr.viktorin, vstinner, jdemeyer
2020-02-18 12:10:14petr.viktorinsetmessageid: <1582027814.19.0.789498909219.issue39611@roundup.psfhosted.org>
2020-02-18 12:10:14petr.viktorinlinkissue39611 messages
2020-02-18 12:10:14petr.viktorincreate