ANN: doctest-mode 0.4

Edward Loper edloper at
Sat Aug 4 22:07:14 CEST 2007

Announcing doctest-mode 0.4



About doctest-mode
   "doctest-mode" is an Emacs major mode for editing text files that
   contain Python "doctest" examples.  (Doctest is a testing framework
   for Python that emulates an interactive session, and checks the
   result of each command.  For more information on doctest, see
   <>).  doctest-mode
   makes it easier to write and maintain doctest files, by providing:

     - Syntax highlighting of the prompts, source code, and expected
       output for each doctest example.

     - Editing support, including automatic indentation (similar to
       python-mode) and automatic prompt management.

     - Execution support, allowing you to run doctest directly from
       emacs, and examine the results in an output buffer.

     - Failure navigation, allowing you to quickly navigate between
       failed examples after you run doctest.

     - Output replacement, allowing you to easily update doctest
       examples with the correct output value.

Improvements in Version 0.4
   - improved syntax highlighting.
   - doctest is now run asynchronously by default.
   - added support for older versions of doctest (pre-Python 2.4)
   - editing the doctest buffer no longer causes doctest-mode to lose
     track of the correspondence between examples in the doctest buffer
     and results in the *doctest-output* buffer.
   - numerous bug-fixes.
   - new command: doctest-execute-region (C-c |).
   - improved portability between different emacs versions.  Tested on:
     * XEmacs 21.4 (patch 17) [Lucid] (i386-debian-linux, Mule)
     * GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600)
     * GNU Emacs (powerpc-apple-darwin8.3.0)
     * GNU Emacs 21.2.1 (powerpc-apple-darwin8.0)

   Copyright (C) 2004-2007 Edward Loper

   This software is provided as-is, without express or implied
   warranty.  Permission to use, copy, modify, distribute or sell this
   software, without fee, for any purpose and by any individual or
   organization, is hereby granted, provided that the above copyright
   notice and this paragraph appear in all copies.

<P><A HREF=""
   >doctest-mode 0.4</A> - a major mode for editing text files that
   contain Python "doctest" examples. (04-Aug-07)

Edward Loper       edloper at

More information about the Python-announce-list mailing list