Two articles on Python new-style objects and mechanisms:
1. Python Types and Objects
(Previously called The New Python: Part 1 - Types and Objects. It has been
restructured and some unnecessary matter deleted.)
Explains the different kinds of objects in Python, starting from <type
'object'>, <type 'type'> and built-in data types to user defined types and
instances, and how they are related.
2. Python Attributes and Methods
Explains attribute access mechanisms in Python. These include working of
descriptors, properties, and method resolution order in Python.
Feedback greaty appreciated! You can write to me at shalabh@cafepy. com, or
use the online form.
Cheers,
Shalabh Chaturvedi
1. Python Types and Objects
(Previously called The New Python: Part 1 - Types and Objects. It has been
restructured and some unnecessary matter deleted.)
Explains the different kinds of objects in Python, starting from <type
'object'>, <type 'type'> and built-in data types to user defined types and
instances, and how they are related.
2. Python Attributes and Methods
Explains attribute access mechanisms in Python. These include working of
descriptors, properties, and method resolution order in Python.
Feedback greaty appreciated! You can write to me at shalabh@cafepy. com, or
use the online form.
Cheers,
Shalabh Chaturvedi