In Python, an object is a chunk of data that contains at least the following:
-
A type that defines what it can do
-
A unique id to distinguish it from other objects
-
A value consistent with its type
-
A reference count that tracks how often this object is used
Comments
Post a Comment