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:12:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389323547.56.0.938218113197.issue20173@psf.upfronthosting.co.za>
In-reply-to
Content
But METH_O makes the update method does not work.

>>> _sha1.sha1().update(b'a')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: new style getargs format but argument is not a tuple

But if you change METH_O to METH_VARARGS, it works again. I'll chip Christian Heimes. Maybe he has something to say about this.

Other than that, I need to update my patch because currently with my patch, the sha1 constructor accepts None value. The default behaviour is to reject None value. So I need to use advanced feature of clinic for this purpose.

I think I can convert all sha modules (including md5) in this weekend. However, _codecsmodule is totally different beast. 43 sites.... >.<
History
Date User Action Args
2014-01-10 03:12:27vajraskysetrecipients: + vajrasky, larry, christian.heimes
2014-01-10 03:12:27vajraskysetmessageid: <1389323547.56.0.938218113197.issue20173@psf.upfronthosting.co.za>
2014-01-10 03:12:27vajraskylinkissue20173 messages
2014-01-10 03:12:27vajraskycreate