mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #16148: implemented PEP 424
This commit is contained in:
parent
ef08fb1f04
commit
aa9a79d279
14 changed files with 161 additions and 82 deletions
|
@ -2651,7 +2651,7 @@ PyBytes_FromObject(PyObject *x)
|
|||
}
|
||||
|
||||
/* For iterator version, create a string object and resize as needed */
|
||||
size = _PyObject_LengthHint(x, 64);
|
||||
size = PyObject_LengthHint(x, 64);
|
||||
if (size == -1 && PyErr_Occurred())
|
||||
return NULL;
|
||||
/* Allocate an extra byte to prevent PyBytes_FromStringAndSize() from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue