Python logo

Table of Contents

  • 6. Expressions
    • 6.1. Arithmetic conversions
    • 6.2. Atoms
      • 6.2.1. Built-in constants
      • 6.2.2. Identifiers (Names)
        • 6.2.2.1. Private name mangling
      • 6.2.3. Literals
        • 6.2.3.1. Literals and object identity
        • 6.2.3.2. String literal concatenation
      • 6.2.4. Parenthesized forms
      • 6.2.5. Displays for lists, sets and dictionaries
      • 6.2.6. List displays
      • 6.2.7. Set displays
      • 6.2.8. Dictionary displays
      • 6.2.9. Generator expressions
      • 6.2.10. Yield expressions
        • 6.2.10.1. Generator-iterator methods
        • 6.2.10.2. Examples
        • 6.2.10.3. Asynchronous generator functions
        • 6.2.10.4. Asynchronous generator-iterator methods
    • 6.3. Primaries
      • 6.3.1. Attribute references
      • 6.3.2. Subscriptions and slicings
        • 6.3.2.1. Slicings
        • 6.3.2.2. Comma-separated subscripts
        • 6.3.2.3. “Starred” subscriptions
        • 6.3.2.4. Formal subscription grammar
      • 6.3.3. Calls
    • 6.4. Await expression
    • 6.5. The power operator
    • 6.6. Unary arithmetic and bitwise operations
    • 6.7. Binary arithmetic operations
    • 6.8. Shifting operations
    • 6.9. Binary bitwise operations
    • 6.10. Comparisons
      • 6.10.1. Value comparisons
      • 6.10.2. Membership test operations
      • 6.10.3. Identity comparisons
    • 6.11. Boolean operations
    • 6.12. Assignment expressions
    • 6.13. Conditional expressions
    • 6.14. Lambdas
    • 6.15. Expression lists
    • 6.16. Evaluation order
    • 6.17. Operator precedence

Previous topic

5. The import system

Next topic

7. Simple statements