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 amaury.forgeotdarc
Recipients Krauzi, amaury.forgeotdarc, georg.brandl, ysj.ray
Date 2010-04-08.07:46:38
SpamBayes Score 0.0005342916
Marked as misclassified No
Message-id <1270712800.02.0.451132656807.issue8336@psf.upfronthosting.co.za>
In-reply-to
Content
Indeed, every function of the API is consistent in this aspect, success or failure should not make a difference in reference counts.  Do you have an evidence of the contrary?

Note that it's possible that because of the failure, some argument is stored in an exception (maybe indirectly, through the traceback which contains active frames and their local variables), which increases its reference count. Clearing the exception should release the reference.
History
Date User Action Args
2010-04-08 07:46:40amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, georg.brandl, Krauzi, ysj.ray
2010-04-08 07:46:40amaury.forgeotdarcsetmessageid: <1270712800.02.0.451132656807.issue8336@psf.upfronthosting.co.za>
2010-04-08 07:46:38amaury.forgeotdarclinkissue8336 messages
2010-04-08 07:46:38amaury.forgeotdarccreate