Wouldn't it be easier just to avoid the windows slashes altogether and
stick to the posix:
title = 'c:/thesis/refined_title.txt'
--
http://mail.python.org/mailman/listinfo/python-list
afri...@yahoo.co.uk wrote:
Wouldn't it be easier just to avoid the windows slashes altogether and
stick to the posix:
title = 'c:/thesis/refined_title.txt'
Well, yes in a way, but lots of places in windows you can get a copy
of a full file spec into the cut buffer, so you cut/paste rather than
On Mar 26, 8:05 am, Scott David Daniels scott.dani...@acm.org wrote:
Well, yes in a way, but lots of places in windows you can get a copy
of a full file spec into the cut buffer, so you cut/paste rather than
type. If you do that, you get the backslashes (and you better be
prepared for that by
On Mar 26, 3:06 pm, alex23 wuwe...@gmail.com wrote:
On Mar 26, 8:05 am, Scott David Daniels scott.dani...@acm.org wrote:
Well, yes in a way, but lots of places in windows you can get a copy
of a full file spec into the cut buffer, so you cut/paste rather than
type. If you do that, you get
Hi I am using IDLE on Windows Vista and I have a small code.
title = 'C:\Thesis\refined_title.txt'
file = open(title)
I get the following error from Python.
file = open(title)
IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Thesis
\refined_title.txt'
Now, I can not understand the
Atul. wrote:
title = 'C:\Thesis\refined_title.txt'
file = open(title)
I get the following error from Python.
file = open(title)
IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Thesis
\refined_title.txt'
Now, I can not understand the problem here ...
Repesat to yourself 1e4 tmes:
Atul. wrote:
Hi I am using IDLE on Windows Vista and I have a small code.
title = 'C:\Thesis\refined_title.txt'
file = open(title)
I get the following error from Python.
file = open(title)
IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Thesis
\refined_title.txt'
Now, I can not
On Tue, Mar 24, 2009 at 4:04 PM, Scott David Daniels
scott.dani...@acm.org wrote:
Atul. wrote:
snip
In your case, '\r' is a return (a single character), not two
characters long. I think its sad that 'C:\Thesis' doesn't cause
an error because there is no such character as '\T', but I am
On Tue, Mar 24, 2009 at 4:32 PM, Wes James compte...@gmail.com wrote:
On Tue, Mar 24, 2009 at 4:04 PM, Scott David Daniels
scott.dani...@acm.org wrote:
Atul. wrote:
snip
In your case, '\r' is a return (a single character), not two
characters long. I think its sad that 'C:\Thesis' doesn't
On Tue, 24 Mar 2009 16:48:30 -0600, Wes James wrote:
On Tue, Mar 24, 2009 at 4:32 PM, Wes James compte...@gmail.com wrote:
On Tue, Mar 24, 2009 at 4:04 PM, Scott David Daniels
scott.dani...@acm.org wrote:
Atul. wrote:
snip
In your case, '\r' is a return (a single character), not two
On Tue, 24 Mar 2009 22:48:30 -, Wes James compte...@gmail.com wrote:
On Tue, Mar 24, 2009 at 4:32 PM, Wes James compte...@gmail.com wrote:
\T might mean the same thing as \t (tab), but I thought it would be
different...
I guess not:
11 matches
Mail list logo