mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Fixed bugs in resizetuple and extended the interface.
Added ifdefs in stringobject.c for shared strings of length 1. Renamed free_list in tupleobject.c to free_tuples.
This commit is contained in:
parent
0a2fa75a9c
commit
615194a352
4 changed files with 59 additions and 18 deletions
|
|
@ -1319,7 +1319,7 @@ filtertuple(func, tuple)
|
|||
}
|
||||
}
|
||||
|
||||
if (resizetuple(&result, j) < 0)
|
||||
if (resizetuple(&result, j, 0) < 0)
|
||||
return NULL;
|
||||
|
||||
if (shared)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue