[Patches] [ python-Patches-837322 ] owning, borrowing, stealing clarification

SourceForge.net noreply at sourceforge.net
Thu Nov 6 16:08:40 EST 2003


Patches item #837322, was opened at 2003-11-06 17:20
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=837322&group_id=5470

Category: Documentation
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Christos Georgiou (tzot)
Assigned to: Nobody/Anonymous (nobody)
Summary: owning, borrowing, stealing clarification

Initial Comment:
in Doc/api/intro.tex, 'Reference count details', merging of 
the second and third sentences with (courtesy of Alex 
Martelli):

Ownership pertains to references, never to objects 
(objects are not owned: they are always 
shared).  "Owning a reference" means being responsible 
for calling Py_DECREF on it when the reference is no 
longer needed.  Ownership can also be transferred, 
meaning that the code that receives ownership of the 
reference then becomes responsible for eventually 
decref'ing it when it's no longer needed.

Please check the final result; this change is IMO 
important since it clarifies what ownership is and implies.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2003-11-06 22:08

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as intro.tex 1.5 and 1.3.24.2.

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

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



More information about the Patches mailing list