[New-bugs-announce] [issue7228] %lld for PyErr_Format (Modules/_io/bufferedio.c)

Hirokazu Yamamoto report at bugs.python.org
Wed Oct 28 07:49:41 CET 2009

New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

Hello. There is following sentence in Modules/_io/bufferedio.c,

               "Raw stream returned invalid position %" PY_PRIdOFF,

and PY_PRIdOFF == "lld" when sizeof(off_t) == sizeof(long long).

But it seems that PyErr_Format doesn't support lld as specifier.

I noticed this because
# define PY_OFF_T_COMPAT    long long
caused compile error on my good old VC6. ;-) (VC6 doesn't have it)

messages: 94601
nosy: mark.dickinson, ocean-city
severity: normal
status: open
title: %lld for PyErr_Format (Modules/_io/bufferedio.c)
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list