A problem from a Vim user

2006-08-07 Thread manuhack
When I use raw_input('Please type something.\n') in the python 2.4 command line windows, it doesn't have any problem. However, when I run the same command in vim 7 as :py raw_input('Please type something.\n'), there is an EOFError: EOF when reading a line. Is there a way to use that command withi

Re: write()

2006-07-27 Thread manuhack
Then is there any way to create a directory under XP using Python? Rick Zantow wrote: > "manuhack" <[EMAIL PROTECTED]> wrote in news:1153981114.837884.232610 > @p79g2000cwp.googlegroups.com: > > > I copied the lines > > > > f=open('/tmp/workfi

Re: write()

2006-07-26 Thread manuhack
How about write mode? Changing r to w doesn't work... [EMAIL PROTECTED] wrote: > manuhack wrote: > > I copied the lines > > > > f=open('/tmp/workfile', 'w') > > print f > > f.close() > > > > from Python 2.4 Documentation 7

write()

2006-07-26 Thread manuhack
I copied the lines f=open('/tmp/workfile', 'w') print f f.close() from Python 2.4 Documentation 7.2. But it said IOerror No such file or directory" '/tmp/workfile' Is it something about the os? I'm using Python 2.4 under WinXP. Thanks. Without / I can open it. -- http://mail.python.org/mail