Re: How to avoid using files to store intermediate results

2006-04-26 Thread Peter Otten
André wrote: > Now, I want to be able to test the code using the doctest module. > > I can't use exec as doctest.testmod() will be testing my entire > application, not simply the code in the input window! > While this works, I find it "messy", as it creates some intermediate > files.  I was wond

How to avoid using files to store intermediate results

2006-04-25 Thread André
I wrote a small wxPython based app to test code snippets. (google for "python lightning compiler" if you want to see the full code). In the basic mode, I redirect the standard input and output and execute the code taken from the editor window so that the result appears in the output window. Here