[IPython-dev] question about generics.complete_object

Brian Granger ellisonbg@gmail....
Thu Feb 25 11:56:26 CST 2010


Darren,

> 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:

It should still work.  This looks like a bug.  If you don't have time
to look into this
yourself, could you submit a bug report.

Thanks!

Brian

> 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
>     63
>     64
>
> TryNext:
>
>
> Is this a bug, or am I expecting functionality that no longer exists?
>
> Thanks,
> Darren
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu
ellisonbg@gmail.com


More information about the IPython-dev mailing list