Skip to content

Rework PyLong import/export functions - #213

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:longexport
Nov 15, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:longexport

Conversation

@vstinner

Copy link
Copy Markdown
Member
  • Only call _PyLong_GetDigits() once in PyLongWriter_Finish().
  • _PyLong_DigitCount() now uses Py_ABS(Py_SIZE(obj)).
  • Enhance PyLong_Export() tests: test negative value and test PyObject_Str().
* Only call _PyLong_GetDigits() once in PyLongWriter_Finish().
* _PyLong_DigitCount() now uses Py_ABS(Py_SIZE(obj)).
* Enhance PyLong_Export() tests: test negative value and test
  PyObject_Str().
@vstinner
vstinner merged commit 38fc1ec into python:main Nov 15, 2026
46 checks passed
@vstinner
vstinner deleted the longexport branch November 15, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant