[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread David Lukeš
David Lukeš added the comment: Oh, right, of course! Sorry and thanks for taking the time to clarify that :) -- ___ Python tracker ___ _

[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: """\"" is parsed as """\ "": a triple-quoted string containing an escaped '"', followed by an empty single-quoted string. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread David Lukeš
New submission from David Lukeš : """ \""" """ evaluates to ' """ ' (as expected), but without the surrounding spaces, """\"" evaluates to '"' instead of '"""'. Is this expected behavior? If I'm reading the definition of string syntax in https://docs.python.org/3/reference/lexical_analysis