alle opties
sid  ]
[ Bron:  ]

Pakket: python-extclass (1.2.0zope-2.5.1-6.1) [debports]

Verwijzigingen voor python-extclass

Screenshot

Debian bronnen:

Het bronpakket downloaden:

Niet gevonden

Beheerders:

Vergelijkbare pakketten:

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.

Andere aan python-extclass gerelateerde pakketten

  • depends
  • recommends
  • suggests

python-extclass downloaden

Pakket downloaden voor alle beschikbare platforms
Platform Pakketgrootte Geïnstalleerde grootte Bestanden
avr32 (unofficial port) 94,3 kB332,0 kB [overzicht]
m68k (unofficial port) 99,8 kB376,0 kB [overzicht]