Windows file paths, again
Terry Reedy
tjreedy at udel.edu
Wed Oct 21 17:34:41 EDT 2009
Dan Guido wrote:
> Hi Diez,
>
> The source of the string literals is ConfigParser, so I can't just
> mark them with an 'r'.
Python string literals only exist in Python source code. Functions and
methods only return *strings*, not literals. If you mistakenly put the
str() representation of a string (such as print gives you) into source
code, rather than the repr() output, then you may have trouble.
tjr
More information about the Python-list
mailing list