tags:

views:

419

answers:

10

I am just a beginner and want to know how to edit Python files. Which applications are used to edit Python files? Thanks for the help in advance.

Related questions:

credits @dF

+1  A: 

Active Python comes with a great, free, cross-platform built in IDE for editing and debugging python files.

They also offer the full Komodo IDE. Komodo comes with multi-language support, autocomplete, syntax checking, syntax hylighting, abbreviations, vi/emacs emulation, code folding, ... The debugger has watch, locals, globals, a call stack, and tons of other features.

You could also use a classic editor like Vim or Emacs.

Brian R. Bondy
+6  A: 

Most advanced users just use vim or emacs. Emacs has python-mode to make editing Python easier, whereas vim has its built-in syntax highlighting support.

If you're the kind of person who isn't comfortable without an IDE, I'd consider Pydev with Eclipse -- but better would be to break your dependency on having an IDE at all. Python is a nimble enough language that you don't really need the kind of tool support when working with it necessary to be productive in languages with more boilerplate such as Java.

Charles Duffy
It's worth getting comfortable in vim in case you need to write a quick Python script on a *nix machine.
postfuturist
A: 

I would guess by this question that you could have just as easily asked "how do I text files", as your a programming beginner as well.

You don't need anything special, any text editor will do.

Probably to get started something simple like TextMate on OSX or UltraEdit on widows are great if you're will to pay for something. Most likely you have something utlra bare-bones on your computer already that work. Examples being TextEdit on OSX, NotePad on windows or even pico on unix.

Graduating a more advanced editor would be greatly encouraged.

rhettg
+1  A: 

Personally, I use KDevelop, which I like because it provides a nice IDE with good support for Python (highlighting, autocomplete, a built-in console, etc.) As far as I know, it only works for Linux.

Since you are a beginner, I would actually avoid trying Vim or Emacs, since these can be somewhat daunting to a beginner. If you are on a non-Linux operating system, you might want to try Eclipse/PyDev, which is supposed to allow Python development in the Eclipse IDE. I have never used it, but a lot of my fellow Python developers use it and they love it.

Sasha
A: 

If you don't mind hand-editing config files, SciTE is an excellent and fast text editor. Eclipse is good if you want a full IDE and don't have a slow computer.

vili
A: 

In addition to all suggested IDE/text editors there is a nice tool to check code quality called pylint

gonzo
A: 

I like TextMate or vi. I like editors that do not make me think too hard about how to use it.

Jauder Ho
+1  A: 

What applications you use largely depends on what OS you are using. Pydev for eclipse is quite nice, netbeans also has a python plugin (though it is still in beta and has issues).

Jedit is a nice simple crossplatform text (code) editor.

The big caveat with Python is that your editor needs to replace tabs with spaces or bad things are going to happen. It took me far too long to figure this out, but hopefully this tip will save you some pain.

James McMahon
+2  A: 

Have you tried the early access release of Netbeans IDE for Python?

http://download.netbeans.org/netbeans/6.5/python/ea/

I'm actually fairly impressed with it.

John T
I've been impressed with NetBeans for a long time. It's a very underrated IDE.
postfuturist