#
2. Built-in Functions, Types, and Exceptions

Names for built-in exceptions and functions are found in a separate symbol table. This table is searched last when the interpreter looks up the meaning of a name, so local and global user-defined names can override built-in names. Built-in types are described together here for easy reference.2.1

The tables in this chapter document the priorities of operators by listing them in order of ascending priority (within a table) and grouping operators that have the same priority in the same box. Binary operators of the same priority group from left to right. (Unary operators group from right to left, but there you have no real choice.) See chapter 5 of the Python Reference Manual for the complete picture on operator priorities.

#### Footnotes

... reference.2.1
  Most descriptions sorely lack explanations of the exceptions that may be raised -- this will be fixed in a future version of this manual.

Subsections

- 2.1 Built-in Functions
- 2.2 Built-in Types
  - 2.2.1 Truth Value Testing
  - 2.2.2 Boolean Operations
  - 2.2.3 Comparisons
  - 2.2.4 Numeric Types
    - 2.2.4.1 Bit-string Operations on Integer Types
  - 2.2.5 Iterator Types
  - 2.2.6 Sequence Types
    - 2.2.6.1 String Methods
    - 2.2.6.2 String Formatting Operations
    - 2.2.6.3 XRange Type
    - 2.2.6.4 Mutable Sequence Types
  - 2.2.7 Mapping Types
  - 2.2.8 File Objects
  - 2.2.9 Other Built-in Types
    - 2.2.9.1 Modules
    - 2.2.9.2 Classes and Class Instances
    - 2.2.9.3 Functions
    - 2.2.9.4 Methods
    - 2.2.9.5 Code Objects
    - 2.2.9.6 Type Objects
    - 2.2.9.7 The Null Object
    - 2.2.9.8 The Ellipsis Object
    - 2.2.9.9 Internal Objects
  - 2.2.10 Special Attributes
- 2.3 Built-in Exceptions