[issue26700] Make digest_size a class variable

2017-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm rejecting this one as low value / infeasible. -- assignee: gregory.p.smith -> resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue26700] Make digest_size a class variable

2016-09-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: 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 modul

[issue26700] Make digest_size a class variable

2016-05-31 Thread Christian Heimes
Christian Heimes added the comment: Not all hash functions have a fixed digest size, e.g. blake2 is a variable length hash algorithm. https://pythonhosted.org/pyblake2/examples.html#using-different-digest-sizes How about a new class attribute default_digest_size? -- _

[issue26700] Make digest_size a class variable

2016-05-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: +cc Christian Heimes: do the upcoming standard hash functions amenable to a constant class attribute digest_size? Are any of the expected future hashes variable length from a single class / constructor function? -- nosy: +christian.heimes _

[issue26700] Make digest_size a class variable

2016-04-06 Thread Raymond Hettinger
New submission from Raymond Hettinger: It would be nicer if this worked: >>> hashlib.md5.digest_size 64 -- assignee: gregory.p.smith components: Extension Modules messages: 262940 nosy: gregory.p.smith, rhettinger priority: normal severity: normal status: open title: Make dige