Gregory P. Smith <g...@krypto.org> added the comment: heh yeah. while all hash functions do have internal state and someone could conceivably want to store such a state (it basically amounts to queued up partial block of input data if any and the current starting IV) there are not consistent APIs to expose that and I really don't see why it'd be worth trying to find them.
remember, hashlib doesn't have to be openssl. there are non openssl libtomcrypt based versions and someone nice should write a libnss based version someday. i'd mark this "won't fix." :) -Greg On Tue, Apr 5, 2011 at 7:02 AM, Antoine Pitrou <rep...@bugs.python.org> wrote: > > Antoine Pitrou <pit...@free.fr> added the comment: > > Why on Earth would you want to serialize a hashlib object? > It makes as much sense as serializing, say, a JSONEncoder. > > ---------- > nosy: +gregory.p.smith, pitrou > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue11771> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11771> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com