New submission from tzickel <icebr...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40085>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to