GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — gh-106320: Remove private _PyLong_IsCompact() function by vstinner · Pull Request #108742 · python/cpython Conversation
|
|
With this change, PyUnstable_Long_IsCompact() and PyUnstable_Long_CompactValue() become regular opaque function calls. They are no longer implemented as static inline functions. That's needed to be able remove the 2 associated static inline functions from the public C API.
When I tried to use the See: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Move the private _PyLong_IsCompact() and _PyLong_CompactValue() functions to the internal C API (pycore_long.h). Public PyUnstable_Long_IsCompact() and PyUnstable_Long_CompactValue() functions can be used instead. Remove "const" qualifier from PyUnstable_Long_IsCompact() and PyUnstable_Long_CompactValue() parameter type.
1969769 to
c6be6f8
Compare
|
@gvanrossum @markshannon: Are the private _PyLong_IsCompact() and _PyLong_CompactValue() functions exposed by I don't know the impact on performance. I'm more in favor of hiding implementation details. If these functions are moved to the internal C API, are you ok to also make this change in Python 3.12?
I don't have a strong opinion on that, I'm also fine with keeping const if you prefer :-) It's just that in the past, I tried to use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please don’t touch these. They are meant to be exported. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also it’s too late for 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ok, let's keep them. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.