Terrence Brannon wrote:

Hello, I'm using a tool (PLY) which apparently expects the tokens to
be created using r''

But because one token is a rather complex regular expression, I want
to create the regular expression programmatically.

How can I generate a string and then create something of the same type
that the r'' function does?

r'' is an alternative syntax for string literals that affects how escape sequences are interpreted; there's no separate string type for strings created by this syntax.

</F>

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to