|
Distribution |
Debian testing |
Abteilung |
python |
Quelle |
python-extclass |
Version |
1.2.0zope-2.5.1-6.1 |
Maintainer |
Matthias Klose <doko@debian.org>
|
Beschreibung |
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.
|
Abhängig von | libc6 (>= 2.7-1), python2.4 | Provides | python2.4-extclass | Ersetzt | python2.3-extclass, python2.4-extclass | Kollidiert mit | python2.3-extclass, python2.4-extclass |
Offizielle Seiten |
Paket
Entwicklerinformationen
Bugs (Binärpaket)
Bugs (Quellpaket) |
Download |
amd64 |
|
|
|