[ python-Bugs-1729742 ] missing int->Py_ssize_t in documentation

SourceForge.net noreply at sourceforge.net
Sat Jun 2 09:27:54 CEST 2007


Bugs item #1729742, was opened at 2007-06-02 01:51
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1729742&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Brian Wellington (bwelling)
Assigned to: Nobody/Anonymous (nobody)
Summary: missing int->Py_ssize_t in documentation

Initial Comment:
The "Parsing arguments and building values" section of the Python/C API Reference Manual describes the "s#" format unit as requiring a [const char *, int].  This should presumably be a Py_ssize_t, as that's what the code appears to expect.

The same problem also occurs elsewhere in this page; pretty much everywhere the # format modifier is described.

I'm seeing this in both the 2.5.1 and development versions of the docs on docs.python.org.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2007-06-02 09:27

Message:
Logged In: YES 
user_id=21627
Originator: NO

It's more complicated than that, see PEP 353: It's Py_ssize_t if the
module defines PY_SSIZE_T_CLEAN, else it's int. Would you like to work on a
patch fixing the documentation?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1729742&group_id=5470


More information about the Python-bugs-list mailing list