python raw strings?

Terry Reedy tjreedy at udel.edu
Wed Aug 25 03:38:55 CEST 2004


"Maurice LING" <mauriceling at acm.org> wrote in message
news:412bc766$1 at news.unimelb.edu.au...
> I'm trying to toy around with PLY (python lex-yacc) by David Beazley
> from University of Chicago and realized that the lex module uses python
> raw strings. What are python raw strings

There is no such thing.  Only string/unicode literals prefixed by 'r',
which prefix flags a change in the conversion of the literal into a Python
object.  I believe the term come from 'raw' versus 'cooked' mode terminal
input in *nix.

Terry J. Reedy






More information about the Python-list mailing list