Mercurial > vim
comparison src/testdir/test86.ok @ 4627:18ba89e06fab v7.3.1061
updated for version 7.3.1061
Problem: Python: Dictionary is not standard.
Solution: Python patch 20: Add standard methods and fields. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 30 May 2013 13:01:18 +0200 |
parents | 90beab957ba9 |
children | e4e48d4ee040 |
comparison
equal
deleted
inserted
replaced
4626:329c896801ce | 4627:18ba89e06fab |
---|---|
2 [1, 'as''d', [1, 2, function('strlen'), {'a': 1}]] | 2 [1, 'as''d', [1, 2, function('strlen'), {'a': 1}]] |
3 [1, 2, function('strlen'), {'a': 1}] | 3 [1, 2, function('strlen'), {'a': 1}] |
4 Vim(put):E684: | 4 Vim(put):E684: |
5 [0, 'as''d', [1, 2, function('strlen'), {'a': 1}]] | 5 [0, 'as''d', [1, 2, function('strlen'), {'a': 1}]] |
6 [0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]] | 6 [0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]] |
7 ['-1', '1', 'b'] | 7 ['-1', '0', '1', 'b'] |
8 ['asd', -1L, <vim.dictionary object at >, <vim.list object at >] | |
9 [('-1', <vim.dictionary object at >), ('0', -1L), ('1', 'asd'), ('b', <vim.list object at >)] | |
8 '-1' : {'a': 1} | 10 '-1' : {'a': 1} |
11 '0' : -1 | |
9 '1' : 'asd' | 12 '1' : 'asd' |
10 'b' : [1, 2, function('strlen')] | 13 'b' : [1, 2, function('strlen')] |
11 [0, function('strlen')] | 14 [0, function('strlen')] |
12 [3] | 15 [3] |
13 {'1': 'asd', 'b': [1, 2, function('strlen')]} | 16 [1, 2, function('strlen')] |
17 [1, 2, function('strlen')] | |
18 1 | |
19 'asd' | |
20 2 | |
21 True | |
22 False | |
23 True | |
24 False | |
25 ['0'] | |
26 {'0': -1} | |
27 ('', -1L) | |
28 None | |
29 [] | |
14 [0, 1, 2, 3] | 30 [0, 1, 2, 3] |
15 [0, 1, 2, 3] | 31 [0, 1, 2, 3] |
16 [0, 1, 3] | 32 [0, 1, 3] |
17 [0, 1] | 33 [0, 1] |
18 [0, 1] | 34 [0, 1] |
42 TypeError | 58 TypeError |
43 TypeError | 59 TypeError |
44 ValueError | 60 ValueError |
45 TypeError | 61 TypeError |
46 TypeError | 62 TypeError |
63 KeyError | |
64 KeyError | |
47 d : locked:0;scope:0 | 65 d : locked:0;scope:0 |
48 dl : locked:1;scope:0 | 66 dl : locked:1;scope:0 |
49 v: : locked:2;scope:1 | 67 v: : locked:2;scope:1 |
50 g: : locked:0;scope:2 | 68 g: : locked:0;scope:2 |
51 d:{'abc': 1} | 69 d:{'abc': 1} |
385 current:__dir__,__members__,buffer,line,range,tabpage,window | 403 current:__dir__,__members__,buffer,line,range,tabpage,window |
386 buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars | 404 buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars |
387 window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars | 405 window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars |
388 tabpage:__dir__,__members__,number,valid,vars,window,windows | 406 tabpage:__dir__,__members__,number,valid,vars,window,windows |
389 range:__dir__,__members__,append,end,start | 407 range:__dir__,__members__,append,end,start |
390 dictionary:__dir__,__members__,keys,locked,scope | 408 dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values |
391 list:__dir__,__members__,extend,locked | 409 list:__dir__,__members__,extend,locked |
392 function:__call__,__dir__,__members__,softspace | 410 function:__call__,__dir__,__members__,softspace |
393 output:__dir__,__members__,flush,softspace,write,writelines | 411 output:__dir__,__members__,flush,softspace,write,writelines |
412 {} | |
413 {'a': 1} | |
414 {'a': 1} | |
394 ' | 415 ' |
395 abcdef | 416 abcdef |
396 line : | 417 line : |
397 abcdef | 418 abcdef |
398 abc | 419 abc |
399 line : | 420 line : |
400 abc' | 421 abc' |
422 ['a', 'dup_a'] | |
401 (<class 'vim.error'>, error('abc',)) | 423 (<class 'vim.error'>, error('abc',)) |
402 (<class 'vim.error'>, error('def',)) | 424 (<class 'vim.error'>, error('def',)) |
403 (<class 'vim.error'>, error('ghi',)) | 425 (<class 'vim.error'>, error('ghi',)) |
404 (<class 'vim.error'>, error('Vim(echoerr):jkl',)) | 426 (<class 'vim.error'>, error('Vim(echoerr):jkl',)) |
405 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) | 427 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) |