[Pythonmac-SIG] Auto-completion Editor for OS X
Glenn Andreas
gandreas at delver.com
Fri Jun 25 09:22:39 EDT 2004
At 11:09 AM +0200 6/25/04, Ronald Oussoren wrote:
>On 25-jun-04, at 5:05, Bob Ippolito wrote:
>
>>It's not that hard to (naively) implement. I think that
>>PyInterpreter in the PyObjC Examples does this. If it doesn't,
>>then someone let me know and I'll try and find my local version
>>that does :)
>
>That example should do completion, but it's not an editor ;-)
>
>Ronald
>>
>>On Jun 24, 2004, at 11:17 AM, Tony McDonald wrote:
>>
>>>I *think* that PyOxide can do this...
PyOXIDE does auto-completion for both the interpreters and the
editors (and uses an XCode style UI for it as well).
Both work in similar, but not identical fashions. The interpreter
window looks in locals()/globals() (based on the existing
auto-complete module), while the editor windows try this if possible
(if you've run the script before, or done something similar somewhere
else) but it will also try to look through the code for matching
symbols.
Needless to say, this works better for the intepreter since that has
more context (but there's currently a bug in the interpreter windows
that cause the autocompletion to include more than it should). Call
tips works similarly (again, the editor can parse out function
declarations where possible).
Regardless, due to the dynamic nature of python, function completion
in an editor is difficult to provide anything terribly useful in many
cases (after all, if "foo" is a parameter to a function, where would
you look to complete "foo."?)
--
Glenn Andreas gandreas at gandreas.com
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
More information about the Pythonmac-SIG
mailing list