This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, georg.brandl, ocean-city
Date 2008-03-04.12:54:33
SpamBayes Score 0.0013339755
Marked as misclassified No
Message-id <1204635275.89.0.888171602239.issue2222@psf.upfronthosting.co.za>
In-reply-to
Content
The affected code is the only case I could find in stdlib where O& 
format was used to populate PyObject* variables.  Although it appears to 
be valid usage, the code presents an exception to the following note at http://docs.python.org/dev/c-api/arg.html : "Note that any Python object 
references which are provided to the caller are borrowed references; do 
not decrement their reference count!"

Should we add that O& a possible exception to this rule?  I'll propose a  
specific change if we agree in principle.  I am not sure if O& 
documentation should make any recommendations to the writers of 
conversion functions.  For example, O& convertors returning a borrowed 
reference may be discouraged in favor of O or O& variants or returning 
PyObject* from a convertor may be discouraged altogether.

I am adding Georg who accepted my other documentation changes in this 
area to the "nosy" list.
History
Date User Action Args
2008-03-04 12:54:36belopolskysetspambayes_score: 0.00133398 -> 0.0013339755
recipients: + belopolsky, georg.brandl, ocean-city
2008-03-04 12:54:35belopolskysetspambayes_score: 0.00133398 -> 0.00133398
messageid: <1204635275.89.0.888171602239.issue2222@psf.upfronthosting.co.za>
2008-03-04 12:54:34belopolskylinkissue2222 messages
2008-03-04 12:54:33belopolskycreate