Help with python output redirection

fatalserpent fatal.serpent at gmail.com
Fri Apr 14 19:59:13 EDT 2006


Here is the basic code (yes, I know its tiny).

x = ['print "x =", x', 'for m in x: print m']
print "x =", x
for m in x: print m

I want to modify this so it will output to a file called 1. What I want
is to have that file direct its output to a file called 2 and 2 direct
to 3 and so on. Hopefully this will be an easy-to-answer question. THX
in advance.




More information about the Python-list mailing list