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.1-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a9b5a5bd187dc3ea22ce045fda882f21372b79c3538f5f64569a1acbf87cca6 |
|
MD5 | eaf649c6c838cdb4e424fa5840e264f4 |
|
BLAKE2b-256 | a4f97d45c2586a6d788d77e5a99c199f0652d4369aa26d3d36da5cd398b39959 |
Hashes for ExtensionClass-2.11.1-py2.7-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfee39c7aea124080ed666e0cc9895da8aa3fe01ab8bfdf18e74be7810de6bae |
|
MD5 | ce7cd0e79a5ad5ca306c96061985cfd7 |
|
BLAKE2b-256 | 7a2cbf70809c616f49965bff0fd10ed48679416d409aea58bf0b83b7315782db |
Hashes for ExtensionClass-2.11.1-py2.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c242dc720f201c7aed54d3ff8b5795c9e66c53ea03c3e2e695a5398cba1675 |
|
MD5 | 72af81a41accb97dd2ee3c5d0e5409ef |
|
BLAKE2b-256 | f04dc19ba988c24a796c4c9a18baf5f3d61b320bd60db5307eaca8b33a3ecd9c |
Hashes for ExtensionClass-2.11.1-py2.6-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 671c22b0d7000c5d0f8cc6c87a7d56c4bc03e88a6f1fbe9b0e2328758f62d946 |
|
MD5 | 285b4d1eb357588ee9fc18a87a5c5918 |
|
BLAKE2b-256 | ce2a9a070c8758a4940eb86ec1fb13ab637f8cba34f5f161c8895d1edd6cd776 |
Hashes for ExtensionClass-2.11.1-py2.5-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405cf036e18a6a82507d4191b10a9ad912fae06af81c4c26b01b64b1572abc18 |
|
MD5 | 908dd2affdc18f6931598c874f4473d9 |
|
BLAKE2b-256 | 685d2b46832ccf17df28cb7f63baf3919b47988c86d885f7a3b8ca7aeee06ab6 |
Hashes for ExtensionClass-2.11.1-py2.4-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b9734c9ef85c8f47a2ddafc1b3e3fc6871ef79d012f1fe52b6ac578d3c9be6 |
|
MD5 | dca4cad27deb2cc00e322b36ae7d1a58 |
|
BLAKE2b-256 | 00eebc1f143a35d3a30c75c1f42673485ed306605a33109f3b7a6d250c46010b |