Bugs item #1629125, was opened at 2007-01-05 23:15
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1629125&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: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jason Evans (jasonevans)
Assigned to: Neal Norwitz (nnorwitz)
Summary: Incorrect type in PyDict_Next() example code

Initial Comment:
In the PyDict_Next() documentation, there are two example snippets of code.  In 
both snippets, the line:

    int pos = 0;

should instead be:

    ssize_t pos = 0;

or perhaps:

    Py_ssize_t pos = 0;

On an LP64 system, the unfixed snippets will cause a compiler warning due to 
size mismatch between int and ssize_t.

Using Python 2.5 on RHEL WS 4, x86_64.

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

>Comment By: Georg Brandl (gbrandl)
Date: 2007-01-17 21:20

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

Yep, it has to be Py_ssize_t. Fixed in rev. 53477, 53478 (2.5).

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1629125&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to