gh-99845: Change _PyDict_KeysSize() return type to size_t#99848
Conversation
* Change _PyDict_KeysSize() and shared_keys_usable_size() return type from signed (Py_ssize_t) to unsigned (size_t) type. * new_values() argument type is now unsigned (size_t). * init_inline_values() now uses size_t rather than int for the 'i' iterator variable. * type.__sizeof__() implementation now uses unsigned (size_t) type.
|
I would prefer to change |
Sorry, something went wrong.
Another more radical change is to move the private function to internal C API, and frozendict should call |
Sorry, something went wrong.
methane
left a comment
There was a problem hiding this comment.
The patch looks good to me.
Is Py_ssize_t recommended for container size and size_t recommended for memory size for now?
Sorry, something went wrong.
|
I was confused by |
Sorry, something went wrong.
edited by bedevere-bot
LoadingUh oh!
There was an error while loading. Please reload this page.
Copy link Copy MarkdownSorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.