arithmetic is a Python module that allows mixing arithmetic operations and text. It resembles the calculator program bc.
Tk, GTK and wxWidgets based sample editors that use the module are provided as a starting point. A plugin for Zim and a patch for PyRoom editors.
Tutorial documents are included, they will quickly show all the features of arithmetic.