[IPython-user] win32com tab completion?
Fernando Perez
Fernando.Perez at colorado.edu
Tue Jan 24 19:55:59 CST 2006
Matt Wilkie wrote:
> Dear ipy,
>
> Is it possible to get tab completion and interactive help for imported
> win32com objects?
>
> I can connect to and use them in the shell if I know what they are but
> it's hard to remember how to spell them or what their parameters are.
> For example:
>
> gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")
> gp.{tab}
>
> shows
>
> gp._ApplyTypes_ gp.__setitem__
> gp._FlagAsMethod gp.__str__
> gp._LazyAddAttr_ gp._builtMethods_
> etc..
>
> but not "gp.AddToolBox" or any of the others I would actually use.
Try dir(gp). That's what tab-completion uses: if an object doesn't publish
its interface, it's really hard for tab-completion to find out about its
internals. Tab-completion is limited to what dir(foo) will return.
Cheers,
f
More information about the IPython-user
mailing list