Bug in lxml.objectify:233

Bug #1963773 reported by volker.jaenisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Fix Committed
Low
scoder

Bug Description

Dear lxml developers!

In lxml.objectify:233

    def __getattr__(self, tag):
        u"""Return the (first) child with the given tag name. If no namespace
        is provided, the child will be looked up in the same one as self.
        """
        if is_special_method(tag):
            return object.__getattr__(self, tag)

the call to object.__getattr__ is incorrect.

            return object.__getattribute__(self, tag)

may work.

Cheers,
Volker

Revision history for this message
scoder (scoder) wrote :

In which case is this better?

Changed in lxml:
status: New → Triaged
Revision history for this message
scoder (scoder) wrote :

Actually, the whole special case is useless, given that "__getattr__" is never called when looking up special methods.
Thanks for the report.

Changed in lxml:
assignee: nobody → scoder (scoder)
importance: Undecided → Low
milestone: none → 5.0
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.