Re: An (apparent) longstring-literals bug

Guido.van.Rossum@cwi.nl
Tue, 14 Jun 1994 21:13:38 +0200

> I'm finally getting around to experimenting with python, and i'm
> happened to hit unexpected exceptions when trying the new '"""'
> longstring literals. The problem seems to be keyed on having a line
> within the literal end with one of the quote chars that was tripled to
> delimit the literal.

This is indeed a bug. You're the first one to report it. This should
fix it:

*** 2.14.2.4 1994/05/23 12:40:51
--- tokenizer.c 1994/06/14 19:07:40
***************
*** 604,609 ****
--- 604,610 ----
tok->cur = tok->inp;
return ERRORTOKEN;
}
+ tripcount = 0;
}
else if (c == EOF) {
tok->done = E_TOKEN;

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>