mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of dict.
This commit is contained in:
parent
1d59a0aacf
commit
5ab81d787f
25 changed files with 61 additions and 80 deletions
|
@ -353,7 +353,7 @@ update_ufd_array(pollObject *self)
|
|||
PyObject *key, *value;
|
||||
struct pollfd *old_ufds = self->ufds;
|
||||
|
||||
self->ufd_len = PyDict_Size(self->dict);
|
||||
self->ufd_len = PyDict_GET_SIZE(self->dict);
|
||||
PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len);
|
||||
if (self->ufds == NULL) {
|
||||
self->ufds = old_ufds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue