Better tracebacks for exec and execfile

Stefan Franke franke at ableton.com
Tue Sep 3 16:52:20 EDT 2002


On 03 Sep 2002 19:12:21 +0200, "Erwin S. Andreasen" <erwin at andreasen.com> wrote:

>compile won't let you specify a start line number: for that I simply
>added "\n" * start_line to the start of the evaluated string :)

Now this is clever! And thought much too straight-forward
to have it figured out by myself <grin>.

Thanks,
Stefan




More information about the Python-list mailing list