[vim/vim] Document of vim.eval in Python (Discussion #19154)

1 view
Skip to first unread message

Phạm Bình An

unread,
Jan 11, 2026, 1:16:34 AM (yesterday) Jan 11
to vim/vim, Subscribed

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.Message ID: <vim/vim/repo-discussions/19154@github.com>

Phạm Bình An

unread,
Jan 11, 2026, 8:22:15 PM (6 hours ago) Jan 11
to vim/vim, Subscribed

Closed #19154 as resolved.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/19154/discussion_event/2346988@github.com>

Reply all
Reply to author
Forward
0 new messages