[IPython-dev] question about generics.complete_object

Darren Dale dsdale24@gmail....
Thu Feb 25 11:51:46 CST 2010

How is generics.complete_object supposed to work in the trunk? I have
a custom completer that uses it, and it used to work, but now
complete_object keeps returning TryNext:

In [12]: generics.complete_object('foo', dir('foo'))
TryNext                                   Traceback (most recent call last)

/Users/darren/Projects/phynx.git/<ipython console> in <module>()

/Users/darren/Projects/ipython/IPython/external/simplegeneric.pyc in
dispatch(*args, **kw)
     73                 f = _gbt(t, _sentinel)
     74                 if f is not _sentinel:
---> 75                     return f(*args, **kw)
     76             else:
     77                 return func(*args, **kw)

/Users/darren/Projects/ipython/IPython/utils/generics.pyc in
complete_object(obj, prev_completions)
     60     own_attrs + prev_completions.
     61     """
---> 62     raise TryNext


Is this a bug, or am I expecting functionality that no longer exists?


More information about the IPython-dev mailing list