mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-108444: Argument Clinic uses PyLong_AsInt() (#108458)
Argument Clinic now uses the new public PyLong_AsInt(), rather than the old name _PyLong_AsInt().
This commit is contained in:
parent
be800f4be7
commit
4e5a7284ee
73 changed files with 467 additions and 466 deletions
|
|
@ -3398,7 +3398,7 @@ class bool_converter(CConverter):
|
|||
def parse_arg(self, argname: str, displayname: str) -> str | None:
|
||||
if self.format_unit == 'i':
|
||||
return """
|
||||
{paramname} = _PyLong_AsInt({argname});
|
||||
{paramname} = PyLong_AsInt({argname});
|
||||
if ({paramname} == -1 && PyErr_Occurred()) {{{{
|
||||
goto exit;
|
||||
}}}}
|
||||
|
|
@ -3586,7 +3586,7 @@ class int_converter(CConverter):
|
|||
def parse_arg(self, argname: str, displayname: str) -> str | None:
|
||||
if self.format_unit == 'i':
|
||||
return """
|
||||
{paramname} = _PyLong_AsInt({argname});
|
||||
{paramname} = PyLong_AsInt({argname});
|
||||
if ({paramname} == -1 && PyErr_Occurred()) {{{{
|
||||
goto exit;
|
||||
}}}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue