Tuesday, June 7, 2011

Re: How to get returned value from python functions in vim scripts ?

On Jun 7, 9:26 am, Marko Mahnič <marko.mah...@gmail.com> wrote:
> On Jun 7, 8:36 am, Ivan Krasilnikov <inf...@gmail.com> wrote:
>
> function s:MyCallback(param)
>    " process
> endfunc
> python DoSomething(s:SNR . 'MyCallback', ...)

This should probably be:
exec "python DoSomething(\"" . s:SNR . "MyCallback\", ...)"

Marko

--
You received this message from the "vim_use" 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

No comments:

Post a Comment