Python logo

Table of Contents

  • Built-in Types
    • Truth Value Testing
    • Boolean Operations — and, or, not
    • Comparisons
    • Numeric Types — int, float, complex
      • Bitwise Operations on Integer Types
      • Additional Methods on Integer Types
      • Additional Methods on Float
      • Additional Methods on Complex
      • Hashing of numeric types
    • Boolean Type - bool
    • Iterator Types
      • Generator Types
    • Sequence Types — list, tuple, range
      • Common Sequence Operations
      • Immutable Sequence Types
      • Mutable Sequence Types
      • Lists
      • Tuples
      • Ranges
    • Text and Binary Sequence Type Methods Summary
    • Text Sequence Type — str
      • String Methods
      • Formatted String Literals (f-strings)
        • Debug specifier
        • Conversion specifier
        • Format specifier
      • Template String Literals (t-strings)
      • printf-style String Formatting
    • Binary Sequence Types — bytes, bytearray, memoryview
      • Bytes Objects
      • Bytearray Objects
      • Bytes and Bytearray Operations
      • printf-style Bytes Formatting
      • Memory Views
    • Set Types — set, frozenset
    • Mapping Types — dict
      • Dictionary view objects
    • Context Manager Types
    • Type Annotation Types — Generic Alias, Union
      • Generic Alias Type
        • Standard Generic Classes
        • Special Attributes of GenericAlias objects
      • Union Type
    • Other Built-in Types
      • Modules
      • Classes and Class Instances
      • Functions
      • Methods
      • Code Objects
      • Type Objects
      • The Null Object
      • The Ellipsis Object
      • The NotImplemented Object
      • Internal Objects
    • Special Attributes
    • Integer string conversion length limitation
      • Affected APIs
      • Configuring the limit
      • Recommended configuration

Previous topic

Built-in Constants

Next topic

Built-in Exceptions