comparison src/testdir/test87.ok @ 4631:4157fef7b950 v7.3.1063

updated for version 7.3.1063 Problem: Python: Function is not standard. Solution: Python patch 22: make Function subclassable. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Thu, 30 May 2013 13:14:13 +0200
parents e4e48d4ee040
children 4c46e1487c63
comparison
equal deleted inserted replaced
4630:aaf27e427749 4631:4157fef7b950
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 [b'-1', b'0', b'1', b'b'] 7 1
8 [-1, <vim.dictionary object at >, <vim.list object at >, b'asd'] 8 [b'-1', b'0', b'1', b'b', b'f']
9 [(b'-1', <vim.dictionary object at >), (b'0', -1), (b'1', b'asd'), (b'b', <vim.list object at >)] 9 [-1, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >, b'asd']
10 [(b'-1', <vim.dictionary object at >), (b'0', -1), (b'1', b'asd'), (b'b', <vim.list object at >), (b'f', <vim.Function '1'>)]
10 '-1' : {'a': 1} 11 '-1' : {'a': 1}
11 '0' : -1 12 '0' : -1
12 '1' : 'asd' 13 '1' : 'asd'
13 'b' : [1, 2, function('strlen')] 14 'b' : [1, 2, function('strlen')]
15 'f' : function('1')
14 [0, function('strlen')] 16 [0, function('strlen')]
15 [3] 17 [3]
16 [1, 2, function('strlen')] 18 [1, 2, function('strlen')]
17 [1, 2, function('strlen')] 19 [1, 2, function('strlen')]
18 1 20 1
394 window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars 396 window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
395 tabpage:__dir__,number,valid,vars,window,windows 397 tabpage:__dir__,number,valid,vars,window,windows
396 range:__dir__,append,end,start 398 range:__dir__,append,end,start
397 dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values 399 dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
398 list:__dir__,extend,locked 400 list:__dir__,extend,locked
399 function:__call__,__dir__,softspace 401 function:__dir__,softspace
400 output:__dir__,flush,softspace,write,writelines 402 output:__dir__,flush,softspace,write,writelines
401 {} 403 {}
402 {'a': 1} 404 {'a': 1}
403 {'a': 1} 405 {'a': 1}
404 [] 406 []
405 ['a', 'b', 'c'] 407 ['a', 'b', 'c']
408 function('tr')
406 ' 409 '
407 abcdef 410 abcdef
408 line : 411 line :
409 abcdef 412 abcdef
410 abc 413 abc
411 line : 414 line :
412 abc' 415 abc'
413 ['a', 'dup_a'] 416 ['a', 'dup_a']
414 ['a', 'a'] 417 ['a', 'a']
415 ['a', 'b', 'c'] 418 ['a', 'b', 'c']
419 [2, 2]
420 [2, 2]
416 (<class 'vim.error'>, error('abc',)) 421 (<class 'vim.error'>, error('abc',))
417 (<class 'vim.error'>, error('def',)) 422 (<class 'vim.error'>, error('def',))
418 (<class 'vim.error'>, error('ghi',)) 423 (<class 'vim.error'>, error('ghi',))
419 (<class 'vim.error'>, error('Vim(echoerr):jkl',)) 424 (<class 'vim.error'>, error('Vim(echoerr):jkl',))
420 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)) 425 (<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))