Télécharger le paquet source 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.
|
|
|
| Architecture | Taille du paquet | Espace occupé une fois installé | Fichiers |
|---|---|---|---|
| alpha | 108,7 ko | 432 ko | [liste des fichiers] |
| amd64 | 106,6 ko | 404 ko | [liste des fichiers] |
| armel | 96,8 ko | 372 ko | [liste des fichiers] |
| avr32 (portage non officiel) | 94,3 ko | 332 ko | [liste des fichiers] |
| hppa | 111,9 ko | 424 ko | [liste des fichiers] |
| hurd-i386 | 93,1 ko | 360 ko | [liste des fichiers] |
| i386 | 94,6 ko | 316 ko | [liste des fichiers] |
| ia64 | 125,9 ko | 560 ko | [liste des fichiers] |
| kfreebsd-amd64 | 104,7 ko | 330 ko | [liste des fichiers] |
| kfreebsd-i386 | 95,0 ko | 294 ko | [liste des fichiers] |
| m68k (portage non officiel) | 99,8 ko | 376 ko | [liste des fichiers] |
| mips | 98,5 ko | 412 ko | [liste des fichiers] |
| mipsel | 95,7 ko | 412 ko | [liste des fichiers] |
| powerpc | 113,0 ko | 452 ko | [liste des fichiers] |
| s390 | 102,7 ko | 396 ko | [liste des fichiers] |
| sparc | 100,3 ko | 384 ko | [liste des fichiers] |