Xiang Zhang added the comment: Thanks for your replies.
I update the patch with PyMem_Calloc. I think it's better than PyMem_Resize since we need to initialize the memory here, there is a memset(op->ob_item, 0, nbytes) below. ---------- Added file: http://bugs.python.org/file43970/List_New_Calloc.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27662> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com