Personal tools
You are here: Home Members nigel Links Introduction To New-Style Classes In Python
Document Actions

Introduction To New-Style Classes In Python

by Nigel Sim last modified 2006-06-22 11:41

A new-style class is one that is derived, either directly or indirectly, from a built-in type. # Properties: Attributes that are defined by get/set methods # Static methods and class methods # The new __getattribute__ hook, which, unlike __getattr__, is called for every attribute access, not just when the attribute can't be found in the instance # Descriptors: A protocol to define the behavior of attribute access through objects # Overriding the constructor __new__

The link address is: http://www.geocities.com/foetsch/python/new_style_classes.htm


Powered by Plone, the Open Source Content Management System