I cannot explain why py3 does work, but py is not working because allocator used by vim was requested to allocate zero length array. This problem is hidden in one of my patches by switching to PyMem_Malloc (normally via PyMem_New macros) everywhere where it is possible: for PyMem_Malloc
> Requesting zero bytes returns a distinct non-NULL pointer if possible, as if > PyMem_Malloc(1) had been called instead. (Reason of the switch: it is considered to be faster; I am even thinking about adding a compile-time option to always use python allocator for allocating memory.) All what is needed to fix is to check for zero length, but currently it should also work fine (just takes away a few ticks for doing unnecessary job; otherwise it would take a few ticks for mostly useless checks any time you do appending). In any case this is to be switched to use iterators or PySequence_Fast in the future. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
