4.1. Python Objects
Python uses the object model abstraction for data storage. Any construct which contains any type of value is an object. Although Python is classified as an “object-oriented programming language,” OOP is not required to create perfectly working Python applications. You can certainly write a useful Python script without the use of classes and instances. However, Python's object syntax and architecture certainly encourage or “provoke” this type of behavior. Let us now take a closer look at what a Python “object” is.
All Python objects have the following three characteristics: an identity, a type, and a value.
IDENTITY | Unique identifier that differentiates an object from all others. Any object's identifier can be obtained using ... |
Get Core Python Programming 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.