On Feb 11, 1:57 am, Anthony Tolle anthony.to...@gmail.com wrote:
On Feb 10, 3:42 pm,joy99subhakolkata1...@gmail.com wrote:
Dear Group,
[snip]
I tried to change the location to D:\file and as I saw in Python Docs
the file reading option is now r+ so I changed the statement to
Dear Group,
I was using Python with IDLE as GUI for quite some time. My Operating
System was Windows XP with Service Pack2.
Recently I changed the Operating System to Windows XP with Service
Pack3. I had to reinstall Python for which I downloaded
python-2.6.4.msiand loaded it in my D drive.
On Feb 10, 3:42 pm, joy99 subhakolkata1...@gmail.com wrote:
Dear Group,
[snip]
I tried to change the location to D:\file and as I saw in Python Docs
the file reading option is now r+ so I changed the statement to
file_open=open(D:\file,r+)
but it is still giving error.
Only use r+ if you
On Wed, 10 Feb 2010 12:42:17 -0800, joy99 wrote:
I tried to change the location to D:\file and as I saw in Python Docs
the file reading option is now r+ so I changed the statement to
file_open=open(D:\file,r+)
but it is still giving error.
You should copy and paste (do not re-type!) the
On Wed, 10 Feb 2010 21:23:08 +, Steven D'Aprano wrote:
The solution to this is to remember that Windows accepts forward slashes
as well as backslashes, and always use the forward slash. So try:
open(D:/file)
and see if that works.
The solution is not to hard-code pathnames in your