A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/064997.html below:

[Python-Dev] Py_ssize_t formatting

[Python-Dev] Py_ssize_t formatting [Python-Dev] Py_ssize_t formatting"Martin v. Löwis" martin at v.loewis.de
Sat May 13 15:23:44 CEST 2006
Georg Brandl wrote:
> which formatting code should be used for a Py_ssize_t value in e.g.
> PyString_FromFormat?

%zd

> '%zd' won't work since my value can be negative, and the 'z' modifier
> converts the argument to size_t.

That's a bug. It should print it signed. If unsigned printing of size_t
is desired, %zu should be used.

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4