Hi again! On 2 Apr., 16:34, Simon King <simon.k...@nuigalway.ie> wrote: > Or, before giving up, I'll try to produce a toy example on sagenb - > perhaps it can be replicated in that way.
No, I can't replicate it. I tried: class FOO: def __getattr__(self, a): if a=='__members__': return ['foo','bar'] f = FOO() f.f<hit tab key> and this results in the completion f.foo. Moreover, dir(f) yields ['__doc__', '__getattr__', '__module__', 'bar', 'foo'], both on the command line and in the notebook. And s.completions('f.f',globals(),system='python') yields ['f.foo'] and also works in both settings. So, my situation is: - Tab completion and introspection is implemented by returning the appropriate stuff when __members__ is requested. - It works at least on the command line, and a toy example works both on command line and notebook. - The doc test works for the toy example, but not for the real application. That probably means I have to look myself. But perhaps someone can give me a direction? Best regards, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org To unsubscribe, reply using "remove me" as the subject.