[Python-Dev] eval and triple quoted strings

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jun 15 06:08:21 CEST 2013

Guido van Rossum wrote:
> Not a bug. The same is done for file input -- CRLF is changed to LF 
> before tokenizing.

I'm not convinced it's reasonable behaviour to re-scan the
string as though it's being read from a file. It's a Python
string, so it's already been through whatever line-ending
transformation is appropriate to get it into memory.


More information about the Python-Dev mailing list