Message275441
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. |
|
Date |
User |
Action |
Args |
2016-09-09 21:05:03 | gregory.p.smith | set | recipients:
+ gregory.p.smith, rhettinger, christian.heimes |
2016-09-09 21:05:03 | gregory.p.smith | set | messageid: <1473455103.65.0.0182914356048.issue26700@psf.upfronthosting.co.za> |
2016-09-09 21:05:03 | gregory.p.smith | link | issue26700 messages |
2016-09-09 21:05:03 | gregory.p.smith | create | |
|