How to parse over a Python expr?

Erik Max Francis max at
Mon Sep 2 14:59:12 EDT 2002

Stefan Franke wrote:

> Are you sure? I think a TQS with a single quote inside would be
> sufficient to miss the right TQS end:
> '''That's all'''
> These a 7 single quotes. Parsed as single-quote strings, the last one
> opens a string until EOF.

Yep, you're right (provided the triple-quoted string is the same kind
that appears within it).  I realized that after I posted.

 Erik Max Francis / max at /
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ There is nothing so subject to the inconstancy of fortune as war.
\__/ Miguel de Cervantes
    Church /
 A lambda calculus explorer in Python.

More information about the Python-list mailing list