This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, gregory.p.smith
Date 2013-08-14.22:31:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376519472.63.0.753349393836.issue18742@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2013-08-14 22:31:12christian.heimessetrecipients: + christian.heimes, gregory.p.smith
2013-08-14 22:31:12christian.heimessetmessageid: <1376519472.63.0.753349393836.issue18742@psf.upfronthosting.co.za>
2013-08-14 22:31:12christian.heimeslinkissue18742 messages
2013-08-14 22:31:12christian.heimescreate