Message195226
All hashlib types provide a common interfaces but there is no common super class. The patch implements provides hashlib.CryptoHash abstract base class as common virtual class for all hash types.
The patch also exposes all internal types of the internal hash C modules so I don't have to jump throw the type(constructor()) hoop.
I have also changed __get_builtin_constructor() to use a lookup cache instead of importing the module every time. It is necessary to avoid multiple calls to CryptoHash.register(). |
|
Date |
User |
Action |
Args |
2013-08-14 22:31:12 | christian.heimes | set | recipients:
+ christian.heimes, gregory.p.smith |
2013-08-14 22:31:12 | christian.heimes | set | messageid: <1376519472.63.0.753349393836.issue18742@psf.upfronthosting.co.za> |
2013-08-14 22:31:12 | christian.heimes | link | issue18742 messages |
2013-08-14 22:31:12 | christian.heimes | create | |
|