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/064998.html below:

[Python-Dev] Py_ssize_t formatting

[Python-Dev] Py_ssize_t formatting [Python-Dev] Py_ssize_t formattingGeorg Brandl g.brandl at gmx.net
Sat May 13 16:02:45 CEST 2006
Martin v. Löwis wrote:
> 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.

I saw you fixed it, thanks.

Similary, there's no way for a structmember to be of type Py_ssize_t...

Georg

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