Re: [Python-Dev] PEP 247 and hashlib

2006-01-16 Thread A.M. Kuchling
On Mon, Jan 16, 2006 at 01:37:18PM +0900, Seo Sanghyeon wrote: > But hashlib.new() takes the algorithm name... Does PEP need an update? The new() function in hashlib's interface doesn't conform to PEP 247; that's all. I don't think the PEP needs to be updated. --amk _

[Python-Dev] PEP 247 and hashlib

2006-01-15 Thread Seo Sanghyeon
"PEP 247 -- API for Cryptographic Hash Functions" specifies a standard API for hashing modules. new([string]) ... the optional 'string' parameter, if supplied, will be immediately hashed into the object's starting state, as if obj.update(string) was called. But hashlib.new() takes the algorithm n