Redirect stdout to file

Gaetan Corneau Gaetan_Corneau at baan.com
Wed Jul 14 14:52:31 EDT 1999


Frederik,

now, keep in mind that all python variables
are just named pointers.  so:

stdout = sys.stdout

creates a variable called "stdout" in *your*
module, which points to the same thing as
"sys.stdout" currently points to...
[GC] 
OK, I didn't know how my "from ... import ..." was interpreted. I thought is
was really giving me the real object (sys.stdout in this case). 

I will remember that :)

Thanks again!
______________________________________________________
   Gaetan Corneau
   Software Developer (System integration Team)
   BaaN  Supply Chain Solutions  
   E-mail: Gaetan_Corneau at baan.com        
   Compuserve: Gaetan_Corneau at compuserve.com  
   ICQ Number: 7395494             
   Tel: (418) 266-8252          
______________________________________________________
"Profanity is the one language all programmers know best"




More information about the Python-list mailing list