A variant of ABC that allows customizing the call behavior via _class_call()
Reason this release was yanked:
Incorrect implementation
Project description
callableabc
This package implements a metaclass and convenience instance of it that works like abc.ABC
, but allows you to customize what happens when the class object gets called by implementing a _class_call()
classmethod.
Inherit from the convenience class CallableABC
to get this behavior,
or use the metaclass CallableABCMeta
directly.
The metaclass uses the CallableABCMetaDict
dictionary subclass to keep track of the _class_call()
method.
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
callableabc-2.0.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for callableabc-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de010493bd43b80940dd47a402c4d3c2d6b66ff2860cddcb20abb5b7990c5f82 |
|
MD5 | 14e8d2a4df88628e24c335e1c8fb51e6 |
|
BLAKE2b-256 | bca87de917e6d3599a6e4d030fd876721ba1f5d5396ef67fed94f176d1380193 |