Anybody knows some actual documentation written? I can't find anything good for any of the 2 competing modes. Looks like Emacs is pretty much abandon when it comes to Python and it is a shame as there is no other programmable programming editor that comes close to Emacs.
The built-in python-mode allows you to use Emacs for Python code debugging with pdb .
Once you open your python file in Emacs, you will need to start the python process with: M-x run-python or C-c C-p , which creates an inferior python shell buffer. This buffer will be created by a horizontal split, and the active buffer will be the one containing the python file.
Emacs (the major flavors being GnuEmacs and XEmacs) is a text editor which come with good support for writing Python code. Each has its strengths and weaknesses, but in general either provide very nice environments for the Python programmer.
This blog recently had a 2 part series that I found very helpful. Part 1 Part 2
There was also an article in Python Magazine last year in either November or December that included decent step by step instructions on how to setup Emacs for Python development. That's by subscription only, but it's very similar to this.
My current setup (roughly based on the above but trimmed down) is PyMacs+Rope+flymake calling pyflakes and pep8 and I find that to be sufficient. You may also find yasnippets useful, though I don't. Though you may want to configure ecb and maybe cedet for some code browsing things. I don't, because then it takes about as long to startup as eclipse.
Nonetheless, there's plenty of resources on the net for configuring Emacs to be a fine Python development environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With