Christian> I've come to the conclusion that most __getattr__
    Christian> implementations delegating to other objects should start
    Christian> with:

    Christian>         if name.startswith ("__") and name.endswith ("__") :
    Christian>             raise AttributeError, name

I tried that.  It broke too.  I no longer remember why.  I view __getattr__
as a temporary convenience so that we can call gtk methods and have them
just work.  I have __getattr__ emitting a message any time it delegates.
That way I am alerted to the need for another wrapper method.


    Christian> PS: I'd hope that you take another look at the `__getattr__`
    Christian>     implementation I proposed 6 weeks ago.

Like I said, I hope to remove __getattr__ eventually.

Skip


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to