mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
bpo-23867: Argument Clinic: inline parsing code for a single positional parameter. (GH-9689)
This commit is contained in:
parent
65ce60aef1
commit
32d96a2b5b
49 changed files with 1677 additions and 275 deletions
|
|
@ -83,7 +83,7 @@ _sha3_shake_128_digest(SHA3object *self, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
unsigned long length;
|
||||
|
||||
if (!PyArg_Parse(arg, "O&:digest", _PyLong_UnsignedLong_Converter, &length)) {
|
||||
if (!_PyLong_UnsignedLong_Converter(arg, &length)) {
|
||||
goto exit;
|
||||
}
|
||||
return_value = _sha3_shake_128_digest_impl(self, length);
|
||||
|
|
@ -110,7 +110,7 @@ _sha3_shake_128_hexdigest(SHA3object *self, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
unsigned long length;
|
||||
|
||||
if (!PyArg_Parse(arg, "O&:hexdigest", _PyLong_UnsignedLong_Converter, &length)) {
|
||||
if (!_PyLong_UnsignedLong_Converter(arg, &length)) {
|
||||
goto exit;
|
||||
}
|
||||
return_value = _sha3_shake_128_hexdigest_impl(self, length);
|
||||
|
|
@ -118,4 +118,4 @@ _sha3_shake_128_hexdigest(SHA3object *self, PyObject *arg)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=bf823532a7bffe68 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=5b3e99b9a96471e8 input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue