Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
While fixing pywin32 to let CI builds work in Python 3.13, the build process complained of not being able to find_PyLong_NumBits. All other Python versions in the CI built successfully.
BOOLPyCom_VariantFromPyObject(PyObject*obj,VARIANT*var){// ...if (PyLong_Check(obj)) {intsign=_PyLong_Sign(obj);size_tnbits=_PyLong_NumBits(obj);if (nbits== (size_t)-1&&PyErr_Occurred())return FALSE;// ...}
The function still exists inmain, apparently inaccessible via the public C API since 3.13. What's the recommended replacement?
CPython versions tested on:
3.8, 3.9, 3.10, 3.11, 3.12, 3.13
Operating systems tested on:
Windows