2.6 Delimiters

The following tokens serve as delimiters in the grammar:

(       )       [       ]       {       }
,       :       .       `       =       ;

The period can also occur in floating-point and imaginary literals. A sequence of three periods has a special meaning as ellipses in slices.

The following printing ASCII characters have special meaning as part of other tokens or are otherwise significant to the lexical analyzer:

'       "       #       \

The following printing ASCII characters are not used in Python. Their occurrence outside string literals and comments is an unconditional error:

@       $       ?


Send comments on this document to python-docs@python.org.


Banner.Novgorod.Ru