Hrvoje Nikšić <[EMAIL PROTECTED]> added the comment:

Note that the item retrieved by PyList_GET_ITEM must be increffed before
being passed to the function.  Otherwise mutating the list can remove
the item from the list and destroy the underlying object, in which case
the current maxitem can refer to a freed object.  This pitfall is
described in http://docs.python.org/extending/extending.html#thin-ice in
some detail.

----------
nosy: +hniksic

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4174>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to