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 gregory.p.smith
Recipients christian.heimes, gregory.p.smith, rhettinger
Date 2016-09-09.21:05:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473455103.65.0.0182914356048.issue26700@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that adding a .default_digest_size attribute to the constructors in the hashlib module would be good... the challenge is in actually doing it.  Today they are not classes, they are built-in functions that come from one of two possible extension modules.  Adding properties to a built-in function is a challenge (I don't think that is even possible in the C API, PyMethodDef doesn't support that).

We could hack around it, wrap them in classes, etc.  But they have never been classes and there is little good reason for them to be a type.
History
Date User Action Args
2016-09-09 21:05:03gregory.p.smithsetrecipients: + gregory.p.smith, rhettinger, christian.heimes
2016-09-09 21:05:03gregory.p.smithsetmessageid: <1473455103.65.0.0182914356048.issue26700@psf.upfronthosting.co.za>
2016-09-09 21:05:03gregory.p.smithlinkissue26700 messages
2016-09-09 21:05:03gregory.p.smithcreate