4
"Copyright (C) 1996-1998, Digital Creations":COPYRIGHT.html.
6
A lightweight mechanism has been developed for making Python
7
extension types more class-like. Classes can be developed in an
8
extension language, such as C or C++, and these classes can be
9
treated like other python classes:
11
- They can be sub-classed in python,
13
- They provide access to method documentation strings, and
15
- They can be used to directly create new instances.
17
Extension classes provide additional extensions to class and
18
instance semantics, including:
20
- A protocol for accessing subobjects "in the context of" their
21
containers. This is used to implement custom method types
22
and "environmental acquisition":Acquisition.html.
24
- A protocol for overriding method call semantics. This is used
25
to implement "synchonized" classes and could be used to
26
implement argument type checking.
28
- A protocol for class initialization that supports execution of a
29
special '__class_init__' method after a class has been
32
Extension classes illustrate how the Python class mechanism can be
33
extended and may provide a basis for improved or specialized class
38
The current release is "1.2":ExtensionClass-1.2.tar.gz,
39
To find out what's changed in this release,
40
see the "release notes":release.html.
42
Documentation is available "on-line":ExtensionClass.html.
46
A win32 binary release, "ec12.zip":ec12.zip, is available. This
47
release includes all of the ExtensionClass modules built as
48
Windows extension modules (.pyd) files. These were built for
49
Python 1.5.1 using Microsoft Visual C++ 5.0 in "Release" mode.