Chapter 3. Types and Objects

ALL THE DATA STORED IN A PYTHON program is built around the concept of an object. Objects include fundamental data types such as numbers, strings, lists, and dictionaries. It’s also possible to create user-defined objects in the form of classes or extension types. This chapter describes the Python object model and provides an overview of the built-in data types. Chapter 4, “Operators and Expressions,” further describes operators and expressions.

Get Python: Essential Reference, Third 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.