comparison src/testdir/test86.in @ 5659:ae228baaec2c v7.4.176

updated for version 7.4.176 Problem: Dictionary.update() thows an error when used without arguments. Python programmers don't expect that. Solution: Make Dictionary.update() without arguments do nothing. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Feb 2014 18:47:27 +0100
parents 2ace11abcfb5
children c2e88a40d530
comparison
equal deleted inserted replaced
5658:71c900ce7632 5659:ae228baaec2c
37 : return 1 37 : return 1
38 :endfun 38 :endfun
39 py << EOF 39 py << EOF
40 d=vim.bindeval('d') 40 d=vim.bindeval('d')
41 d['1']='asd' 41 d['1']='asd'
42 d.update() # Must not do anything, including throwing errors
42 d.update(b=[1, 2, f]) 43 d.update(b=[1, 2, f])
43 d.update((('-1', {'a': 1}),)) 44 d.update((('-1', {'a': 1}),))
44 d.update({'0': -1}) 45 d.update({'0': -1})
45 dk = d.keys() 46 dk = d.keys()
46 dv = d.values() 47 dv = d.values()