суббота, 1 сентября 2012 г., 20:32:39 UTC+4 пользователь Marcin Szamotulski написал: > I looked into the documentation in the mercurial (I should check it > before but my vim has bit old runtime tree) and it suggests that the > keys are converted to strings: > > Dictionaries are represented as Vim |Dictionary| type with > keys converted to strings. > > So or E859 is a bug or the documentation should be changed.
Agreed here. # HG changeset patch # User ZyX <[email protected]> # Date 1346519818 -14400 # Node ID fac3b8f96d30583e39f6f46ac0d63269a859a164 # Parent 0fa6134265ec58e8dba97cdb8e2a6730e05361df Fixed documentation for pyeval() diff -r 0fa6134265ec -r fac3b8f96d30 runtime/doc/eval.txt --- a/runtime/doc/eval.txt Sat Sep 01 18:08:04 2012 +0400 +++ b/runtime/doc/eval.txt Sat Sep 01 21:16:33 2012 +0400 @@ -4635,8 +4635,8 @@ Numbers and strings are returned as they are (strings are copied though). Lists are represented as Vim |List| type. - Dictionaries are represented as Vim |Dictionary| type with - keys converted to strings. + Dictionaries are represented as Vim |Dictionary| type, + non-string keys result in error. {only available when compiled with the |+python| feature} *E726* *E727* -- 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
