[issue35784] document that hashlib.new takes kwargs

2019-09-11 Thread Christian Heimes


Christian Heimes  added the comment:

Thanks for the bug report.

While you are technically correct, I would like to hold off on this change for 
a bit more. I plan to replace our internal vendored copies of sha3 and blake2 
with OpenSSL code. OpenSSL 1.1.1 has some of the new required APIs. OpenSSL 
3.0.0-dev is currently adding more but with slightly different semantic. For 
example OpenSSL does not have blake2b, but blake2b512 for hashing and 
blake2bmac for keyed hashing with salting and personalization.

I like to get integration with OpenSSL right until hashlib.new() is officially 
documented.

--
assignee: docs@python -> christian.heimes
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35784] document that hashlib.new takes kwargs

2019-09-10 Thread Tahia K

Tahia K  added the comment:

Hello,

I just submitted a small PR for this doc change, including the example provided 
by Jörn (thanks Jörn).

--
nosy: +ta1hia

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35784] document that hashlib.new takes kwargs

2019-09-10 Thread Tahia K


Change by Tahia K :


--
keywords: +patch
pull_requests: +15531
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15890

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35784] document that hashlib.new takes kwargs

2019-01-19 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +christian.heimes, gregory.p.smith
versions: +Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35784] document that hashlib.new takes kwargs

2019-01-19 Thread Jörn Heissler

New submission from Jörn Heissler :

This code works:
hashlib.new('blake2b', b'foo', digest_size=7)

https://github.com/python/cpython/blob/master/Lib/hashlib.py#L7
documents the function as: new(name, data=b'', **kwargs)

But the **kwargs argument is missing in 
https://docs.python.org/3/library/hashlib.html#hashlib.new and there aren't any 
examples either.

--
assignee: docs@python
components: Documentation
messages: 334053
nosy: docs@python, joernheissler
priority: normal
severity: normal
status: open
title: document that hashlib.new takes kwargs
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com