David Isaac wrote: > PS Here's the motivation. Python closely resembles pseudocode. With > a very little LaTeX hacking, it is often possible to write algorithms is > Python that typeset as reasonable pseudocode. A simple repetitive > loop is a bit of a sticking point.
With slightly more LaTeX hacking or possibly Python hacking on your script before passing it to LaTeX, you might just be able to change occurences of for x in range(a, b): to for x in [a, b): or whatever, and get away with plain vanilla Python in your code... -- http://mail.python.org/mailman/listinfo/python-list