New to Python.

Terry Reedy tjreedy at udel.edu
Thu Mar 18 08:45:23 EST 2004


"Erik Max Francis" <max at alcyone.com> wrote in message
news:40593E14.EAF16BD5 at alcyone.com...
> 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.

Or forward slashes (/), which avoids the whole problem.

tjr







More information about the Python-list mailing list