Theme
Auto
Light
Dark
Table of Contents
2. Lexical analysis
2.1. Line structure
2.1.1. Logical lines
2.1.2. Physical lines
2.1.3. Comments
2.1.4. Encoding declarations
2.1.5. Explicit line joining
2.1.6. Implicit line joining
2.1.7. Blank lines
2.1.8. Indentation
2.1.9. Whitespace between tokens
2.1.10. End marker
2.2. Other tokens
2.3. Names (identifiers and keywords)
2.3.1. Keywords
2.3.2. Soft Keywords
2.3.3. Reserved classes of identifiers
2.3.4. Non-ASCII characters in names
2.4. Literals
2.5. String and Bytes literals
2.5.1. Triple-quoted strings
2.5.2. String prefixes
2.5.3. Formal grammar
2.5.4. Escape sequences
2.5.4.1. Ignored end of line
2.5.4.2. Escaped characters
2.5.4.3. Octal character
2.5.4.4. Hexadecimal character
2.5.4.5. Named Unicode character
2.5.4.6. Hexadecimal Unicode characters
2.5.4.7. Unrecognized escape sequences
2.5.5. Bytes literals
2.5.6. Raw string literals
2.5.7. f-strings
2.5.8. t-strings
2.5.9. Formal grammar for f-strings
2.6. Numeric literals
2.6.1. Integer literals
2.6.2. Floating-point literals
2.6.3. Imaginary literals
2.7. Operators and delimiters
Previous topic
1.
Introduction
Next topic
3.
Data model