Built-in Types
This section documents Python’s core built-in types, such as int
, float
, dict
, and many others. More details about many of these types, and about operations on their instances, are found throughout Chapter 4. In the rest of this section, by “number” I mean, specifically, “noncomplex number.”
basestring |
Noninstantiable (abstract) common basetype of types |
bool |
Returns |
buffer |
Returns a read-only buffer object that refers to a compact slice of |
classmethod |
Returns a class method object. In practice, you call this built-in type only within a class body, and, most often, in Python 2.4, you use it as a decorator. See Class methods. |
complex |
Converts ... |
Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.