views:

4364

answers:

9

I recently saw an announcement and article outlining the release of the first Python 3.0 release candidate. I was wondering whether there were any commercial, free, open source etc. IDE's that support its syntax.

+1  A: 

Can get PyDev. from http://pydev.sourceforge.net. Its a plugin for Eclipse and is more than handy. Not to mention benefits of the old and trusted Eclipse.

Nrj
Does pydev support python 3? I couldn't find any info on this.
paxdiablo
A: 

How about Komodo?

Robert Gould
Nope. A year on and Komodo still doesn't have a date for Python 3 support. See later comments at http://community.activestate.com/forum/troubles-python-30
Scott Griffiths
+5  A: 

Komodo 5 beta 1 was released in October 2008 and has initial support for Python 3 but I don't think I'd be using it for production code yet.

Given that Python 3 is still a very early release candidate, you may have some trouble finding mature support in IDEs.

paxdiablo
I've used Komodo 5 with Python 3 code and it worked perfectly.
musicfreak
A lot may have changed since Oct 2008 when I answered this question - Python 3.0 is an ex-release and 3.1 is the latest. I'd be surprised if the support hadn't improved at least a little bit :-)
paxdiablo
I'm using the latest Komodo IDE (5.2.2) and it still doesn't have anything close to decent Python 3 support. See for example the defect: http://bugs.activestate.com/show_bug.cgi?id=79326
Scott Griffiths
+6  A: 

Python 3 is just not that different from Python 2.x. In terms of syntax per se, things that will actually need to be handled differently by the parser, the only major change is in the replacement of the print statement with the print function.

Most of the features of Python can be easily probed via introspection (online help, method completion, function signatures, etc.), so there's no reason why any Python IDE will require major changes to work with Python 3.0. I expect IDLE and SPE and the other open-source IDEs will be support it before the final release.

Dan
+1  A: 

Emacs + python.el continues to be better than anything else I've tried.

Just Some Guy
A: 

I can say that at the time of posting this (Apr. 28 2009, version 0.8.4h) that SPE does not correctly handle some python3 syntax - specifically exception handling. For example, the follow code is flagged as an error (and irritatingly, is jumped to whenever the file is saved):

except urllib.error.URLError as e:
        if hasattr(e, 'reason'):
        #...
Zxaos
+1  A: 

Pyscripter is the PERFECT Python IDE on windows; it's compatible even with the newly released Python 3.1.

Victor Yan
Perfect is very subjective. ;)
musicfreak
Not perfect for me, but better than all the others I've tried.
Dave Berk
+1  A: 

PyDev for Eclipse does support 3.0 (http://pydev.sourceforge.net). You can configure multiple interpreters in the plug-in settings.

In the project properties you can set:

  • Project type (Python, Jython, IronPython)
  • Grammar version (2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 3.0).

(PyDev version at time of writing: 1.4.7.)

Paidhi
PyDev URL has changed: http://pydev.org/
Paidhi
A: 

Geany works with python 3 if you install it and then:

sudo gedit /usr/share/geany/filetypes.python

change the last 2 lines with:

compiler=python3 -c "import py_compile; py_compile.compile('%f')"

run_cmd=python3 "%f"

Ivo Acedian