New submission from Serhiy Storchaka: Proposed patch adds support for non-bitwise unsigned integer arguments in Argument Clinic. I.e. now unsigned_int(bitwise=False) (or just unsigned_int) converts Python int in range from 0 to UINT_MAX to C unsigned int. Added support for unsigned_short, unsigned_int, unsigned_long, unsigned_PY_LONG_LONG, and size_t.
Also added global private functions _Py_UnsignedShort_Converter(), _Py_UnsignedInt_Converter(), _Py_UnsignedLong_Converter(), _Py_UnsignedLongLong_Converter(), and _Py_Size_t_Converter(), which are used by Argument Clinic and in C code still not converted to Argument Clinic. ---------- components: Demos and Tools, Interpreter Core files: clinic_unsigned_converters.patch keywords: patch messages: 208102 nosy: georg.brandl, larry, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Argument Clinic: add unsigned integers converters type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file33464/clinic_unsigned_converters.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com