This is the document of vim.eval in Python.
vim.eval(str) *python-eval* Evaluates the expression str using the vim internal expression evaluator (see |expression|). Returns the expression result as: - a string if the Vim expression evaluates to a string or number - a list if the Vim expression evaluates to a Vim list - a tuple if the Vim expression evaluates to a Vim tuple - a dictionary if the Vim expression evaluates to a Vim dictionary Dictionaries, lists and tuples are recursively expanded.
But the function does more than that, it also convert Vim special (v:true, v:false, v:none, v:null) to Python bool or null. Should the document be updated to also mention if the expression is a Vim special?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #19154 as resolved.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()