Mercurial > vim
diff src/testdir/test87.ok @ 4599:89bec74fd793 v7.3.1047
updated for version 7.3.1047
Problem: Python: dir() does not work properly.
Solution: Python patch 8. Add __dir__ method to all objects with custom
tp_getattr supplemented by __members__ attribute for at least
python-2* versions. __members__ is not mentioned in python-3*
dir() output even if it is accessible. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 29 May 2013 22:36:10 +0200 |
parents | 0cf552b325b5 |
children | 219b2fcad60d |
line wrap: on
line diff
--- a/src/testdir/test87.ok +++ b/src/testdir/test87.ok @@ -371,6 +371,15 @@ vim.current.buffer:Buffer:True vim.current.range:Range:True vim.current.window:Window:True vim.current.tabpage:TabPage:True +current:__dir__,buffer,line,range,tabpage,window +buffer:__dir__,append,mark,name,number,options,range,valid,vars +window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars +tabpage:__dir__,number,valid,vars,window,windows +range:__dir__,append,end,start +dictionary:__dir__,keys,locked,scope +list:__dir__,extend,locked +function:__call__,__dir__,softspace +output:__dir__,flush,softspace,write,writelines (<class 'vim.error'>, error('abc',)) (<class 'vim.error'>, error('def',)) (<class 'vim.error'>, error('ghi',))