This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients christian.heimes, larry, vajrasky
Date 2014-01-10.03:35:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389324931.23.0.825469168814.issue20173@psf.upfronthosting.co.za>
In-reply-to
Content
This is the current behaviour of sha1 constructor. It rejects None value.

>>> import _sha1
>>> _sha1.sha1()
<_sha1.sha1 object at 0x7f7fa7f0dea0>
>>> _sha1.sha1(None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object supporting the buffer API required
>>> _sha1.sha1(string=None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object supporting the buffer API required

Then when I clinic it, what about the doc? This doesn't seem right.

+PyDoc_STRVAR(_sha1_SHA1_sha1__doc__,
+"sha1(string=None)\n"
 "Return a new SHA1 hash object; optionally initialized with a string.");
History
Date User Action Args
2014-01-10 03:35:31vajraskysetrecipients: + vajrasky, larry, christian.heimes
2014-01-10 03:35:31vajraskysetmessageid: <1389324931.23.0.825469168814.issue20173@psf.upfronthosting.co.za>
2014-01-10 03:35:31vajraskylinkissue20173 messages
2014-01-10 03:35:30vajraskycreate