Indented multi-line strings

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Jun 1 04:02:49 EDT 2018


Here's my take on what an indented multi-line string
syntax should look like.

     string foo:
         |  This is a multi-line indented string declaration.
         |  Note that it's a statement, not an expression. In
         |  this example, each line of the final string starts
         |  with two spaces.

-- 
Greg



More information about the Python-list mailing list