[Python-Dev] Attribute error: providing type name (original) (raw)

Alex Martelli aleaxit at gmail.com
Mon Dec 1 02:14:08 CET 2008


On Sun, Nov 30, 2008 at 2:02 PM, Filip GruszczyƄski <gruszczy at gmail.com> wrote:

Yeah, any time someone implements their own attribute lookup process for a class (be it via getattr, getattribute or the C equivalents), it is up to the reimplementation to appropriately format their error message if they raise AttributeError directly. I guess, this means that I have to go to Phil Thompson at Riverbank and try to convince him to change the message.

Yes, but he should be able to change it in one place (in sip, the C++ to Python wrapper generator he's also authored and uses for PyQt) AND it would make sip even better, so he may want to put it on his backlog.

Alex



More information about the Python-Dev mailing list