file open fails.
rhodri at wildebst.demon.co.uk
Wed Mar 25 01:55:55 CET 2009
On Tue, 24 Mar 2009 22:48:30 -0000, Wes James <comptekki at gmail.com> wrote:
> On Tue, Mar 24, 2009 at 4:32 PM, Wes James <comptekki at gmail.com> wrote:
>> \T might mean the same thing as \t (tab), but I thought it would be
> I guess not:
> Wonder why when I do print "test\Ttest" vs print "test\ttest" \T just
> get printed?
Because "\T" has no special meaning, so is just a two character sequence
like any other in the literal. 'print' just prints the string.
print repr("test\Ttest"), repr("test\ttest")
might be illuminating?
Rhodri James *-* Wildebeeste Herder to the Masses
More information about the Python-list