Benjamin Peterson schrieb:
> 2009/6/16 Greg Ewing <greg.ew...@canterbury.ac.nz>:
>> Lenard Lindstrom wrote:
>>
>>> I assumed that since PyModule_AddObject is documented as stealing a
>>> reference, it always stole a reference. But in reality it only does so
>>> conditionally, when it succeeds.
>> As an aside, is this a general feature of functions
>> that steal references, or is PyModule_AddObject an
>> oddity?
> 
> IIRC, It's an oddity.

But it is a convenient oddity nonetheless.

Christian

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to