[Tutor] Saving command line keyed input?

CPIM Ronin ronin_cpim at hotmail.com
Wed Oct 19 23:12:48 CEST 2005

I know that one should use IDLE or a choosen editor for any substantial 
Python coding! However, if one  happens to have written some interesting 
doodlings on the regular command line interface (under Windows XP in my 
case), is there an easy way to save ALL input to date into a selected file?

For example:
>>>class work_center:
             def __init__(self,x_name):
                    self.name = x_name

>>>x = work_center("machine press")

  ---  What do I do to save the above work into a file named "mywork.py"



On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

More information about the Tutor mailing list