Python Editor with Autocorrection

L

Laurentiu

hello!


i am searching for a free python editor with
autocorrection capabillities.

for example:" the wrong setfocus() call to become
SetFocus(), etc."


thanks





___________________________________________________________
All New Yahoo! Mail – Tired of Vi@gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
 
J

John J. Lee

Laurentiu said:
i am searching for a free python editor with
autocorrection capabillities.

for example:" the wrong setfocus() call to become
SetFocus(), etc."

Perhaps not quite what you were looking for, but emacs' dabbrev-expand
works well for avoiding mistyped Python names (not to mention typing
less). It searches through all buffers for a "word" matching the
first few characters you typed.

So, to type the first "dabbrev-expand" in this sentence, I just typed
'da', then hit F4 (which I have bound to dabbrev-expand). If there
are multiple matches, you can carry on hitting F4 until the expansion
you want is found, or type a few more characters and try again. The
capitalization behaviour is controlled by the variable
dabbrev-case-replace.

I think other editors can do something similar, but it works well with
the emacs way of working (one emacs process open, lots of files loaded
into buffers in that process).


John
 
R

Ravi Teja

Laurentiu said:
hello!


i am searching for a free python editor with
autocorrection capabillities.

for example:" the wrong setfocus() call to become
SetFocus(), etc."


thanks

Python is a dynamic language, which means that methods that may not
exist in your source code may spring to being at runtime at any point.
So it may be undesirable to have such feature. (For example, take a
look at an XML binding tool such as Amara which creates objects at
runtime after parsing an XML file).

Most good editors (Scintilla based editors, Emacs, Vi etc) have
auto-completion for symbols that have occured in the current file; and
some advanced IDEs (PyDev, WingIDE, SPE, Komodo etc) will auto-complete
to some degree based on your imports through static analysis.
 
J

John J. Lee

Ravi Teja said:
Most good editors (Scintilla based editors, Emacs, Vi etc) have
auto-completion for symbols that have occured in the current file; and

What I find really useful in emacs is completion based on *all* open
files (usually I have maybe twenty files open at once).

some advanced IDEs (PyDev, WingIDE, SPE, Komodo etc) will auto-complete
to some degree based on your imports through static analysis.

Pythonwin also does that, I'm told. Emacs can do introspection-based
completion. The support in emacs was a little clunky, and I found
dabbrev-expand much more useful anyway.


John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top