[ python-Bugs-1221477 ] Incorrect documentation for InPlace Number operators

SourceForge.net noreply at sourceforge.net
Wed Jun 15 23:15:44 CEST 2005


Bugs item #1221477, was opened at 2005-06-15 14:46
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1221477&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: Invalid
Priority: 5
Submitted By: Daniel Stutzbach (agthorr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Incorrect documentation for InPlace Number operators

Initial Comment:
The documentation for the various InPlace abstract
number operators (PyNumber_InPlaceSubtract, etc.)
specify that the functions return a new reference. 
Unless I'm mistaken, this is incorrect.  The functions
do not increment increment the reference counter.  



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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-06-15 16:15

Message:
Logged In: YES 
user_id=80475

Actually, they do.  Arithmetic operations create new number
objects.

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

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


More information about the Python-bugs-list mailing list