gh-81313: Add the math.integer module (PEP-791) (GH-133909)

This commit is contained in:
Serhiy Storchaka
2025-10-31 16:13:43 +02:00
committed by GitHub
parent 680a5d070f
commit dcf3cc5796
22 changed files with 2091 additions and 1748 deletions

28
configure generated vendored
View File

@@ -814,6 +814,8 @@ MODULE__BISECT_FALSE
MODULE__BISECT_TRUE
MODULE__ASYNCIO_FALSE
MODULE__ASYNCIO_TRUE
MODULE__MATH_INTEGER_FALSE
MODULE__MATH_INTEGER_TRUE
MODULE_ARRAY_FALSE
MODULE_ARRAY_TRUE
MODULE_TIME_FALSE
@@ -31334,6 +31336,28 @@ then :
fi
if test "$py_cv_module__math_integer" != "n/a"
then :
py_cv_module__math_integer=yes
fi
if test "$py_cv_module__math_integer" = yes; then
MODULE__MATH_INTEGER_TRUE=
MODULE__MATH_INTEGER_FALSE='#'
else
MODULE__MATH_INTEGER_TRUE='#'
MODULE__MATH_INTEGER_FALSE=
fi
as_fn_append MODULE_BLOCK "MODULE__MATH_INTEGER_STATE=$py_cv_module__math_integer$as_nl"
if test "x$py_cv_module__math_integer" = xyes
then :
fi
@@ -34447,6 +34471,10 @@ if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then
as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MODULE__MATH_INTEGER_TRUE}" && test -z "${MODULE__MATH_INTEGER_FALSE}"; then
as_fn_error $? "conditional \"MODULE__MATH_INTEGER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then
as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5