file open fails.

Wes James comptekki at gmail.com
Tue Mar 24 18:48:30 EDT 2009


On Tue, Mar 24, 2009 at 4:32 PM, Wes James <comptekki at gmail.com> wrote:
> On Tue, Mar 24, 2009 at 4:04 PM, Scott David Daniels
> <Scott.Daniels at 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
>> probably excessively pedantic.
>
> \T might mean the same thing as \t (tab), but I thought it would be different...


I guess not:

http://docs.python.org/reference/lexical_analysis.html#string-literals

Wonder why when I do print "test\Ttest" vs print "test\ttest"  \T just
get printed?

-wj



More information about the Python-list mailing list