generics.complete_object broken

Bug #527968 reported by Darren Dale
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

generics.complete_object appears to be broken in the trunk (0.11alpha). It keeps returning TryNext in situations where it should not. As a result, it is proving to be very difficult to support some custom completers with the forthcoming ipython-0.11:

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


Changed in ipython:
status: New → Triaged
milestone: none → 0.11
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers