Re: [Pydev-code] Autocompletion using CPython only
Brought to you by:
fabioz
From: Dana M. <dan...@ya...> - 2004-08-09 22:46:40
|
Hi all I just added autocompletion using a spawned CPython interpreter only (replaces the old jython strategy). The affected files are: org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java and pretty much all the python source files. org.python.pydev\PySrc\:: debug.py inspect.py introspect.py jintrospect.py tipper.py Let me know if something is a problem. let me know if yo ulike the autocompletion style It should sutocomplete on the occurence of '.' or '(' in the workbench code If there are any robustness problems. The one which I know aout _potentially_ biting us is that I assume the existence of a Python interpreter somewhere in the user's path, thus I don't attempt to do full discovery of wher ethe python interpreter actually lives, rather I simply exec the string: "python <abs-path-of-org.python.pydev\PySrc>\tipper.py <tmp-file-containing-the-editor-content>" If it doesn't exist on the user path, autocmpletion simply won't work I plan next to do a set of CTRL-SPACE completions a la the JDT: so for example, if the user types: iff <CTRL><SPACE> we might emit the text (on user selection): "if condition: action else: action" ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |