[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/MagicStack/MagicPython/master/test/strings/format2.py [Back]  [Original]

a = "normal {{ normal }} normal {10!r} normal {fo.__add__!s}".format(fo=1)


a             : source.python
              : source.python
=             : keyword.operator.assignment.python, source.python
              : source.python
"             : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
normal        : source.python, string.quoted.single.python
{{            : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, string.quoted.single.python
 normal       : source.python, string.quoted.single.python
}}            : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, string.quoted.single.python
 normal       : source.python, string.quoted.single.python
{10           : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, string.quoted.single.python
!r            : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, storage.type.format.python, string.quoted.single.python
}             : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, string.quoted.single.python
 normal       : source.python, string.quoted.single.python
{fo.__add__   : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, string.quoted.single.python
!s            : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, storage.type.format.python, string.quoted.single.python
}             : constant.character.format.placeholder.other.python, meta.format.brace.python, source.python, string.quoted.single.python
"             : punctuation.definition.string.end.python, source.python, string.quoted.single.python
.             : meta.member.access.python, punctuation.separator.period.python, source.python
format        : meta.function-call.generic.python, meta.function-call.python, meta.member.access.python, source.python
(             : meta.function-call.python, meta.member.access.python, punctuation.definition.arguments.begin.python, source.python
fo            : meta.function-call.arguments.python, meta.function-call.python, meta.member.access.python, source.python, variable.parameter.function-call.python
=             : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, meta.member.access.python, source.python
1             : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, meta.member.access.python, source.python
)             : meta.function-call.python, meta.member.access.python, punctuation.definition.arguments.end.python, source.python

Web Proxy Viewer  |  New URL  |  Original Page