Serhiy Storchaka added the comment:

listpop.patch:

list_resize(a, Py_SIZE(a) + d) for d < 0 fails only when PyMem_Realloc(p, n) 
returns NULL if n < allocated size. Is it possible? Is it desired behavior? 
Perhaps we should declare that PyMem_Realloc() should return the original 
pointer if it can't shrink an allocated block.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18408>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to