Download Source Package python-extclass:
A lightweight mechanism, named "ExtensionClass", has been developed for making Python extension types more class-like. Classes can be developed in an extension language, such as C or C++, and these classes can be treated like other python classes:
- They can be sub-classed in python, - They provide access to method documentation strings, and - They can be used to directly create new instances.
An example class shows how extension classes are implemented and how they differ from extension types.
Extension classes provide additional extensions to class and instance semantics, including:
- A protocol for accessing subobjects "in the context of" their containers. This is used to implement custom method types and environmental acquisition. - A protocol for overriding method call semantics. This is used to implement "synchronized" classes and could be used to implement argument type checking. - A protocol for class initialization that supports execution of a special '__class_init__' method after a class has been initialized.
Extension classes illustrate how the Python class mechanism can be extended and may provide a basis for improved or specialized class models.
This package is built for Python 2.3.
|
|
|
| Architecture | Package Size | Installed Size | Files |
|---|---|---|---|
| alpha | 69.3 kB | 316 kB | [list of files] |
| amd64 (unofficial port) | 76.4 kB | 252 kB | [list of files] |
| arm | 70.1 kB | 288 kB | [list of files] |
| hppa | 91.4 kB | 324 kB | [list of files] |
| i386 | 63.9 kB | 212 kB | [list of files] |
| ia64 | 123.1 kB | 504 kB | [list of files] |
| m68k | 65.8 kB | 264 kB | [list of files] |
| mips | 71.4 kB | 352 kB | [list of files] |
| mipsel | 71.7 kB | 352 kB | [list of files] |
| powerpc | 86.5 kB | 332 kB | [list of files] |
| s390 | 77.2 kB | 300 kB | [list of files] |
| sparc | 80.2 kB | 304 kB | [list of files] |