Note that comments are not allowed inside expressions.

This commit is contained in:
Eric V. Smith 2015-09-05 17:07:48 -04:00
parent 3732c04a7a
commit 0c4d7c180b
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,9 @@ braces ``'{{'`` or ``'}}'`` are replaced by the corresponding single
brace. Doubled opening braces do not signify the start of an
expression.
Comments, using the ``'#'`` character, are not allowed inside the
expression.
Following the expression, an optional type conversion may be
specified. The allowed conversions are ``'!s'``, ``'!r'``, or
``'!a'``. These are treated the same as in ``str.format()``: ``'!s'``