Next: Exceptions Prev: Built-in Objects Up: Built-in Objects Top: Top

2.1. Built-in Types

The following sections describe the standard types that are built into the interpreter. These are the numeric types, sequence types, and several others, including types themselves. There is no explicit Boolean type; use integers instead. Some operations are supported by several object types; in particular, all objects can be compared, tested for truth value, and converted to a string (with the `...` notation). The latter conversion is implicitly used when an object is written by the print statement.

Menu

Truth Value Testing
Boolean Operations
Comparisons
Numeric Types
Sequence Types
Mapping Types
Other Built-in Types
Special Attributes