[issue40085] Argument parsing option c should accept int between -128 to 255 ?

2021-07-26 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40085] Argument parsing option c should accept int between -128 to 255 ?

2020-04-05 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think this question is about types in c, apart from any Python c API. According to https://docs.python.org/3/c-api/arg.html#numbers, the specifier is c: (bytes or bytearray of length 1) -> [char] so you should be able to write to a c variable of type

[issue40085] Argument parsing option c should accept int between -128 to 255 ?

2020-03-27 Thread tzickel
New submission from tzickel : I converted some code from python to c-api and was surprised that a code stopped working. Basically the "c" parsing option allows for 1 char bytes or bytearray inputs and converts them to a C char. But just as indexing a bytes array returns an int, so should