[lxml-dev] [PATCH] 1.3 Fatal Python error: deallocating None

Stefan Behnel stefan_ml at behnel.de
Wed Jun 27 22:57:05 CEST 2007


David M. Grimes wrote:
> I have identified a bug with the new attrib.pop() method in lxml-1.3 
> There is a piece of code in etree.pyx (line 1483) related to using the
> provided default if the key lookup fails.  The issue is that the
> returned value (from PyTuple_GET_ITEM) is a borrowed reference.

Thanks for reporting this. Fixed on trunk and branch.

Stefan



More information about the lxml-dev mailing list