The only explanation for people disliking Python's enforced indentation (that I can think of) is that they haven't really programmed anything in Python. but the indentation is not something I'd choose as a flaw. _xyz_() naming convention, the way print, exec, et al are weird not-quite-functions, that lambda is very limited. Yes, there are things which bug me in Python - the ugly.
But that is IME and not any kind of 'fact'. The computer isn't confused, and the enforced style and reduced clutter of braces, IME, makes the source look neater and less cluttered.
Code is about communicating with the computer and other programmers. PeterB says that it confuses content and presentation. However, if you use programs which don't munge your source without asking, is this actually a realworld problem? Has it happened to you? Percivall raises a good point - if the indenting is somehow lost (using code in a plain HTML document perhaps?) then your code is unrecoverable. Have you ever cut-and-pasted code and lost all indenting and been caused hassle? the "unbraced 'if'" kind of error of C++/Java?Īfter some time adjusting, do you still find indenting troublesome? Do you use an editor which auto indents? Have you ever made a mistake because of the indenting, _other_ than an indent error? e.g. The Emacs Wiki, a good starting place.I want to take this out of the language flaws thread and focus on this question.įrom the first use, I found Python's indenting to be both easy to read and easy to write. Note: We should try to get the style into upstream c-mode. whether it finds a line starting with tab in the first 3000 characters This is a very crude hook that auto-selects the C style depending on If you're hacking on Python 3.x, you'll want to add the following code to your. If you're developing Python 2.x, just use the standard python style that comes with c-mode. Features aural highlighting, structured browsing and debugging.īoth Emacs and XEmacs have support for developers hacking on the Python C code itself.
It has editing support for interactive Python development. The emacspeak audio desktop is a speech interface that allows visually impaired users to interact independently and efficiently with the computer. OO-Browser, an Emacs class browser for object-oriented languages with support for Python. It uses rope library and pymacs.Įmacs Language Sensitive Editor (ELSE), an template-based minor mode for Emacs, with templates for Python. Ropemacs is a plugin for performing python refactorings in emacs. ' There are also PyMacs notes on the Emacs wiki. (Note: thanx to Ganesan R: Create the following script with the file name as "pdb" in your path so emacs can find pdb and default to filename arguments in the current dirctory: exec python /usr/lib/python2.3/pdb.py an extension for allowing Emacs users to extend Emacs using Python, where they might have traditionally used Emacs LISP. Emacs GUD PDB, support for sourcelevel debugging of Python code in Emacs.For a version with fixes and enhancements (as of 2006-06) and one that works with Emacs 21, see. Other approaches relying on company-mode, Pymacs, ropemacs and pycomplete are known to work likewise
How to setup a complete IDE around python-mode.el was shown at EuroPython 2013.