Metaclass for subclassable extension types
Project description
ExtensionClass
This package provides a metaclass that allows classes implemented in extension modules to be subclassed in Python. Unless you need ExtensionClasses for legacy applications (e.g. Zope 2), you probably want to use Python’s new-style classes (available since Python 2.2).
ComputedAttribute
This package provides a way to attach attributes to an ExtensionClass or instance that are computed by calling a callable. This works very much like property known from new-style classes, except that a ComputedAttribute can also be attached to an instance and that it honours ExtensionClass semantics (which is useful for retaining Acquisition wrappers, for example).
MethodObject
This package lets you attach additional “methods” to ExtensionClasses. These “methods” are actually implemented by subclassing the MethodObject.Method class and implementing the __call__ method there. Instances of those classes will be bound to the instances they’re attached to and will receive that instance object as a first parameter (after self).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for ExtensionClass-2.11.0b1-py2.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7c7e9ad3ff5340db7403e7c1f6f6e6042c6f9337524f56916e9432f82474a96 |
|
MD5 | 97a494def2e221c429a833aa871641cb |
|
BLAKE2b-256 | d426ede6da4f530fbcb7848a0906b36f2471188e0c9682cd37d2db29a4fa0962 |
Hashes for ExtensionClass-2.11.0b1-py2.6-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0edb1d43dfb360e13753b792bbb905fa0019fd6a8969a8ebe1ed5f961a05144a |
|
MD5 | d62d75155ffe0445f228429de084cfa6 |
|
BLAKE2b-256 | 60f694ef9541cbffda43282291f6e9d147c0db3f8abb6c89d8c2be3bb3d6f599 |