On Thursday 01 October 2009 02:50:36 pm you wrote:
> I don't think using __getattribute__ to intercept method calls is
> compatible with python tools that rely on introspection, like tab
> completion in IPython or documentation generation tools like Sphinx's
> autodoc. In a sense, part of the API is effectively hidden. For this
> reason I tend to avoid delegation using __getattribute__ in my own
> projects.
Yes, for QtRuby I've reimplemented the various Ruby introspection methods to 
fool the Ruby runtime into thinking the missing methods/classes in the Smoke 
library are really there, and so code completion does work in the irb 
interactive shell. I don't know if it is possible to do the same thing in 
Python, but I agree it is am important consideration.

-- Richard
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to