Vajrasky Kok added the comment:

>Rule 1: Argument Clinic handles all argument parsing for you.  Your "impl" 
>function should never call PyArg_ParseTuple or PyArg_ParseTupleAndKeywords.

Ah, got it. Here is the third patch. Everything works fine except for the issue 
whether sha1 constructor should accept None value or not. Right now, after 
clinic, it accepts it. So _sha1.sha1() is same as _sha1.sha1(string=None).

----------
Added file: http://bugs.python.org/file33400/clinic_sha1module_v3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to