воскресенье, 8 апреля 2012 г., 22:42:26 UTC+4 пользователь ZyX написал: > воскресенье, 8 апреля 2012 г., 19:42:47 UTC+4 пользователь ZyX написал: > > Here is a patch that adds to "bindeval" function to vim module (acts like > > lua's vim.eval, except for function references), three types: > > vimdictionary, vimlist and vimfunction (latter does not modify vim > > functions, but is able to call them without vim.eval() and serializing) and > > pyeval() VimL function (similar to mzeval). > > > > Testing and porting to python3 is still needed. All changes are available > > in python-extended branch at https://bitbucket.org/ZyX_I/vim. > > There is known issue here: at least two of three new types need to have more > support in garbagecollector: I must add python equivalent to set_ref_in_lua. > In other case vim crashes when calling garbage_collect (normally at exit) if > there is a python reference to list/dictionary, but no vim one.
Issue resolved in last two commits (copied vim hash manipulation functions from hashtab.c, purged out all unneded stuff and made it serve to hold vim struct * -> PyObject * map). If you have better suggestions, post them here. Now needed: tests (WIP) and porting to python 3 (I am not so interested in the latter, at least until someone also finish porting mercurial). -- 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
