[New-bugs-announce] [issue4682] 'b' formatter is actually unsigned char

vt report at bugs.python.org
Wed Dec 17 12:02:19 CET 2008

New submission from vt <vt at foilhead.net>:

The 'b' format unit to PyArg_ParseTuple, PyArg_ParseTupleAndKeywords, and PyArg_Parse is described in the documentation (in Parsing arguments and 
building values) as representing a signed char, but actually represents an 
unsigned char.

Personally, I would say that this is a problem with the interpreter core, 
but 'b' has been an unsigned char since 2000 and fixing it now would 
probably break backwards compatibility of extensions.

assignee: georg.brandl
components: Documentation
messages: 77964
nosy: georg.brandl, vt
severity: normal
status: open
title: 'b' formatter is actually unsigned char

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list