New to Python.

Erik Max Francis max at alcyone.com
Thu Mar 18 01:13:40 EST 2004


Sean Ross wrote:

> # sorry, that should be
> source = file('C:\Python23\Samples\Bob.txt')

You really want to use double backslashes (\\) here or use a raw string
(r'...').  If not, this will eventually bite you.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ Pick the roses from the thorns / Wash with waters of the storms
    -- Chante Moore



More information about the Python-list mailing list