On Thu, Apr 20, 2017 at 3:19 PM, Peter Otten <__pete...@web.de> wrote:
> If being helpful really is the only purpose of the metaclass you can > implement a SomeClass.__dir__() method instead: > > def __dir__(self): > names = dir(self._instance) > # <snip whatever post-processing you want> > return names > Thanks. That would probably get me halfway home in Python 3, but appears to have no effect in Python 2. It wouldn't solve the missing attributes in help()/pydoc either. Skip -- https://mail.python.org/mailman/listinfo/python-list