2. Built-In Objects
Names for built-in exceptions and functions and a number of constants 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 Non-essential Built-in Functions
- 2.3 Built-in Types
- 2.3.1 Truth Value Testing
- 2.3.2 Boolean Operations --
and, or, not
- 2.3.3 Comparisons
- 2.3.4 Numeric Types --
int, float, long, complex
- 2.3.5 Iterator Types
- 2.3.6 Sequence Types --
str, unicode, list,
tuple, buffer, xrange
- 2.3.7 Set Types --
set, frozenset
- 2.3.8 Mapping Types -- classdict
- 2.3.9 File Objects
- 2.3.10 Other Built-in Types
- 2.3.11 Special Attributes
- 2.4 Built-in Exceptions
- 2.5 Built-in Constants
Release 2.4.3, documentation updated on 29 March 2006.
See About this document... for information on suggesting changes.