[Python-checkins] r56174 - python/branches/cpy_merge/Modules/_bytes_iomodule.c python/branches/cpy_merge/Modules/_string_iomodule.c

"Martin v. Löwis" martin at v.loewis.de
Wed Jul 4 22:55:05 CEST 2007


Alexandre Vassalotti schrieb:
> On 7/4/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
>> > Py_ssize_t is an unsigned type, so it can't be negative.
>>
>> That's not true. *s*size_t is meant to indicate that it
>> is a *signed* version of size_t.
> 
> Ah! I thought Py_ssize_t was just the Python analogue of size_t, which
> is unsigned. Thanks for the note!

Actually, it is the analogue of ssize_t, which doesn't exist on all
platforms (hence the Py_ prefix).

Regards,
Martin



More information about the Python-checkins mailing list