[lxml-dev] segfault when using etree.CustomElementClassLookup

Stefan Behnel stefan_ml at behnel.de
Wed Jun 4 22:23:39 CEST 2008


Hi,

Martijn Faassen wrote:
> On Wed, Jun 4, 2008 at 2:38 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:
>>> parser.setElementClassLookup(lookup)
>> is correctly spelled
>>
>>> parser.set_element_class_lookup(lookup)
>> since lxml 2.0, following PEP 8 naming conventions. However, I didn't dare to
>> remove the original method, since I figured that it would break tons of code
>> for no major reason. At least the examples should reflect the new name
>> everywhere now, so maybe I can remove it in lxml 3.0. ;)
> 
> The documentation on the website still has the camelCases when I read
> it yesterday.

Hrmpf, thanks. I had actually postponed my initial decision to follow PEP 8
everywhere, and then forgotten to fix that function name for 2.0. Then I
figured out later that it was still used everywhere in the docs, so I couldn't
remove it without a longer warning phase. I had fixed it on the trunk back
then, but apparently forgot to merge the doc changes over to the 2.0 branch...

It's fixed now ... finally ...

Stefan


More information about the lxml-dev mailing list