Message207831
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."); |
|
Date |
User |
Action |
Args |
2014-01-10 03:35:31 | vajrasky | set | recipients:
+ vajrasky, larry, christian.heimes |
2014-01-10 03:35:31 | vajrasky | set | messageid: <1389324931.23.0.825469168814.issue20173@psf.upfronthosting.co.za> |
2014-01-10 03:35:31 | vajrasky | link | issue20173 messages |
2014-01-10 03:35:30 | vajrasky | create | |
|