PyDoc_STRVAR(_testlimitedcapi_test_long_api__doc__,
"test_long_api($module, /)\n"
"--\n"
"\n");
#define _TESTLIMITEDCAPI_TEST_LONG_API_METHODDEF …
static PyObject *
_testlimitedcapi_test_long_api_impl(PyObject *module);
static PyObject *
_testlimitedcapi_test_long_api(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(_testlimitedcapi_test_longlong_api__doc__,
"test_longlong_api($module, /)\n"
"--\n"
"\n");
#define _TESTLIMITEDCAPI_TEST_LONGLONG_API_METHODDEF …
static PyObject *
_testlimitedcapi_test_longlong_api_impl(PyObject *module);
static PyObject *
_testlimitedcapi_test_longlong_api(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(_testlimitedcapi_test_long_and_overflow__doc__,
"test_long_and_overflow($module, /)\n"
"--\n"
"\n"
"Test the PyLong_AsLongAndOverflow API.\n"
"\n"
"General conversion to PY_LONG is tested by test_long_api_inner.\n"
"This test will concentrate on proper handling of overflow.");
#define _TESTLIMITEDCAPI_TEST_LONG_AND_OVERFLOW_METHODDEF …
static PyObject *
_testlimitedcapi_test_long_and_overflow_impl(PyObject *module);
static PyObject *
_testlimitedcapi_test_long_and_overflow(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(_testlimitedcapi_test_long_long_and_overflow__doc__,
"test_long_long_and_overflow($module, /)\n"
"--\n"
"\n"
"Test the PyLong_AsLongLongAndOverflow API.\n"
"\n"
"General conversion to long long is tested by test_long_api_inner.\n"
"This test will concentrate on proper handling of overflow.");
#define _TESTLIMITEDCAPI_TEST_LONG_LONG_AND_OVERFLOW_METHODDEF …
static PyObject *
_testlimitedcapi_test_long_long_and_overflow_impl(PyObject *module);
static PyObject *
_testlimitedcapi_test_long_long_and_overflow(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(_testlimitedcapi_test_long_as_size_t__doc__,
"test_long_as_size_t($module, /)\n"
"--\n"
"\n"
"Test the PyLong_As{Size,Ssize}_t API.\n"
"\n"
"At present this just tests that non-integer arguments are handled correctly.\n"
"It should be extended to test overflow handling.");
#define _TESTLIMITEDCAPI_TEST_LONG_AS_SIZE_T_METHODDEF …
static PyObject *
_testlimitedcapi_test_long_as_size_t_impl(PyObject *module);
static PyObject *
_testlimitedcapi_test_long_as_size_t(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(_testlimitedcapi_test_long_as_unsigned_long_long_mask__doc__,
"test_long_as_unsigned_long_long_mask($module, /)\n"
"--\n"
"\n");
#define _TESTLIMITEDCAPI_TEST_LONG_AS_UNSIGNED_LONG_LONG_MASK_METHODDEF …
static PyObject *
_testlimitedcapi_test_long_as_unsigned_long_long_mask_impl(PyObject *module);
static PyObject *
_testlimitedcapi_test_long_as_unsigned_long_long_mask(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(_testlimitedcapi_test_long_as_double__doc__,
"test_long_as_double($module, /)\n"
"--\n"
"\n");
#define _TESTLIMITEDCAPI_TEST_LONG_AS_DOUBLE_METHODDEF …
static PyObject *
_testlimitedcapi_test_long_as_double_impl(PyObject *module);
static PyObject *
_testlimitedcapi_test_long_as_double(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(_testlimitedcapi_PyLong_AsInt__doc__,
"PyLong_AsInt($module, arg, /)\n"
"--\n"
"\n");
#define _TESTLIMITEDCAPI_PYLONG_ASINT_METHODDEF …