Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'_PyLong_NumBits': identifier not found in 3.13 #119336

Closed
Labels
@clin1234

Description

@clin1234

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp