An Emacs mode for editing Python code

Registered 2008-02-22 by Barry Warsaw

This is an Emacs mode for editing, debugging, and developing Python programs.

Should python-mode fail or a feature is missed, if possible, give a description starting from `emacs -Q'.
Also output of M-x report-emacs-bug RET might be useful. Add the version of python-mode - M-x py-version RET.

If you can, please check against current trunk or development branch.
Get it via download button from code page or the archive with bazaar command

bzr branch lp:python-mode
resp. development
bzr branch lp:python-mode/components-python-mode

Should it still exist, please send a report to

Please note that this is different than the python.el that comes by default in FSF Emacs. The origins of python-mode.el predates python.el by many years. Any known command should be available - with prefix `py-' here.

Contact us at You can also subscribe the mailing list at <>.

Project information

python-mode.el developers
python-mode.el developers
Development focus:

trunk series 

Browse the code

Programming Languages:
EmacsLisp, Python
GNU GPL v3, Python Licence

RDF metadata

View full history Series and milestones

python-mode.el trunk series is the current focus of development

More contributors Top contributors

All packages Packages in Distributions

All questions Latest questions

All blueprints Latest blueprints

Get Involved


Latest version is 6.1.3
released on 2014-01-27

All downloads


  • New in version 6.1.3 on 2014-01-28
    - PEP8 indent-alternatives when closing a list implemented Boolean `py-close...
  • New in version 6.1.2 on 2013-09-02
    - simplified menu - `py-execute-...'-commands return result as string Con...
  • python-mode.el-6.1.1 on 2013-02-23
    New in version 6.1.1 --------------------- - comment-related commands: py...
  • python-mode.el-6.1.0 on 2012-12-05
    New in version 6.1.0 --------------------- - py-up Go to beginning one le...
  • python-mode.el-6.0.12 on 2012-09-28
    New in version 6.0.12 --------------------- - py-sexp-function. When set...