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 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26700>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to