Menu

#5 indentation of """ multiline """ strings

open
nobody
None
5
2004-06-07
2004-06-07
No

If one defines a multi-line string with """ markers in
a function or a view, the cherrypy compilers gives an
error when the 2nd line (or any subsequent line) of the
multi-line string does not follow the indentation of
the python code block, which is against the normal
python way of doing.

It also means that you cannot write self generateing
masks because masks make use of such mlulti-line markers

Discussion


Log in to post a comment.

MongoDB Logo MongoDB