This small patch makes it able to use vim dictionary (obtained via
vim.bindeval) and any other object that is converted to it as a self argument
to vim.function object call:
diff -r 580391c2f925 -r 2974bdedfcf5 src/if_py_both.h
--- a/src/if_py_both.h Thu Jul 19 18:05:19 2012 +0200
+++ b/src/if_py_both.h Sat Jul 21 13:35:52 2012 +0400
@@ -1284,7 +1284,7 @@
selfdictObject = PyDict_GetItemString(kwargs, "self");
if (selfdictObject != NULL)
{
- if (!PyDict_Check(selfdictObject))
+ if (!PyMapping_Check(selfdictObject))
{
PyErr_SetString(PyExc_TypeError, _("'self' argument must be a
dictionary"));
clear_tv(&args);
--
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