[New-bugs-announce] [issue40085] Argument parsing option c should accept int between -128 to 255 ?
tzickel
report at bugs.python.org
Fri Mar 27 03:45:42 EDT 2020
New submission from tzickel <icebreak at yahoo.com>:
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 this option support it. i.e. b't'[0] = 116
Not sure if it should limit between 0 to 255 or -128 to 127.
----------
components: C API
messages: 365139
nosy: tzickel
priority: normal
severity: normal
status: open
title: Argument parsing option c should accept int between -128 to 255 ?
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40085>
_______________________________________
More information about the New-bugs-announce
mailing list