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 ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access