| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.958 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.958 |
| Problem: Python: Iteration destructor not set. |
| Solution: Put IterDestructor to use. (ZyX) |
| Files: src/if_py_both.c |
| |
| |
| |
| |
| |
| *** 566,572 **** |
| return (PyObject *)(self); |
| } |
| |
| - #if 0 /* unused */ |
| static void |
| IterDestructor(PyObject *self) |
| { |
| --- 566,571 ---- |
| |
| *** 576,582 **** |
| |
| DESTRUCTOR_FINISH(self); |
| } |
| - #endif |
| |
| static PyObject * |
| IterNext(PyObject *self) |
| --- 575,580 ---- |
| |
| *** 3823,3828 **** |
| --- 3821,3827 ---- |
| IterType.tp_doc = "generic iterator object"; |
| IterType.tp_iter = IterIter; |
| IterType.tp_iternext = IterNext; |
| + IterType.tp_dealloc = IterDestructor; |
| |
| vim_memset(&BufferType, 0, sizeof(BufferType)); |
| BufferType.tp_name = "vim.buffer"; |
| |
| |
| |
| *** 730,731 **** |
| --- 730,733 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 958, |
| /**/ |
| |
| -- |
| Yesterday is history. |
| Tomorrow is a mystery. |
| Today is a gift. |
| That's why it is called 'present'. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |