etch  ] [  etch-m68k  ] [  lenny  ] [  squeeze  ] [  sid  ]
[ Quellcode: python-extclass  ]

Paket: python-extclass (1.2.0zope-2.5.1-6.1)

Improves integration between Python and C++ classes

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.

Markierungen: Software-Entwicklung: C-Entwicklung, C++-Entwicklung, Python-Entwicklung, Bibliotheken, Implementiert in: Python

Andere Pakete mit Bezug zu python-extclass

  • hängt ab von
  • empfiehlt
  • schlägt vor
  • dep: hurd [hurd-i386]
    GNU Hurd
    auch ein virtuelles Paket, bereitgestellt durch hurd-udeb
  • dep: libc0.1 (>= 2.3) [kfreebsd-amd64, kfreebsd-i386]
    GNU C-Bibliothek: Dynamische Bibliotheken
    auch ein virtuelles Paket, bereitgestellt durch libc0.1-udeb
  • dep: libc0.3 (>= 2.7-1) [hurd-i386]
    GNU C-Bibliothek: Dynamische Bibliotheken
    auch ein virtuelles Paket, bereitgestellt durch libc0.3-udeb
  • dep: libc6 (>= 2.5) [avr32]
    GNU C-Bibliothek: Dynamische Bibliotheken
    auch ein virtuelles Paket, bereitgestellt durch libc6-udeb
    dep: libc6 (>= 2.5-5) [m68k]
    dep: libc6 (>= 2.7-1) [nicht alpha, avr32, hurd-i386, ia64, kfreebsd-amd64, kfreebsd-i386, m68k]
  • dep: libc6.1 (>= 2.7-1) [alpha, ia64]
    GNU C-Bibliothek: Dynamische Bibliotheken
    auch ein virtuelles Paket, bereitgestellt durch libc6.1-udeb
  • dep: python2.4
    Eine interaktive objektorientierte abstrakte Programmiersprache (Version 2.4)

python-extclass herunterladen

Download für alle verfügbaren Architekturen
Architektur Paketgröße Größe (installiert) Dateien
alpha 108,7 kB432 kB [Liste der Dateien]
amd64 106,6 kB404 kB [Liste der Dateien]
armel 96,8 kB372 kB [Liste der Dateien]
avr32 (inoffizielle Portierung) 94,3 kB332 kB [Liste der Dateien]
hppa 111,9 kB424 kB [Liste der Dateien]
hurd-i386 93,1 kB360 kB [Liste der Dateien]
i386 94,6 kB316 kB [Liste der Dateien]
ia64 125,9 kB560 kB [Liste der Dateien]
kfreebsd-amd64 104,7 kB330 kB [Liste der Dateien]
kfreebsd-i386 95,0 kB294 kB [Liste der Dateien]
m68k (inoffizielle Portierung) 99,8 kB376 kB [Liste der Dateien]
mips 98,5 kB412 kB [Liste der Dateien]
mipsel 95,7 kB412 kB [Liste der Dateien]
powerpc 113,0 kB452 kB [Liste der Dateien]
s390 102,7 kB396 kB [Liste der Dateien]
sparc 100,3 kB384 kB [Liste der Dateien]