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

Package: 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.

Tags: Software Development: C Development, C++ Development, Python Development, Libraries, Implemented in: Python

Other Packages Related to python-extclass

  • depends
  • recommends
  • suggests
  • dep: libc6 (>= 2.7-1) [not ia64]
    GNU C Library: Shared libraries
    also a virtual package provided by libc6-udeb
  • dep: libc6.1 (>= 2.7-1) [ia64]
    GNU C Library: Shared libraries
    also a virtual package provided by libc6.1-udeb
  • dep: python2.4
    An interactive high-level object-oriented language (version 2.4)

Download python-extclass

Download for all available architectures
Architecture Package Size Installed Size Files
amd64 106.6 kB404 kB [list of files]
armel 96.8 kB372 kB [list of files]
hppa 111.9 kB424 kB [list of files]
i386 94.6 kB316 kB [list of files]
ia64 125.9 kB560 kB [list of files]
mips 98.5 kB412 kB [list of files]
mipsel 95.7 kB412 kB [list of files]
powerpc 113.0 kB452 kB [list of files]
s390 102.7 kB396 kB [list of files]
sparc 100.3 kB384 kB [list of files]