mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
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)
This commit is contained in:
@@ -39,6 +39,7 @@ STARTTEST
|
||||
py << EOF
|
||||
d=vim.bindeval('d')
|
||||
d['1']='asd'
|
||||
d.update() # Must not do anything, including throwing errors
|
||||
d.update(b=[1, 2, f])
|
||||
d.update((('-1', {'a': 1}),))
|
||||
d.update({'0': -1})
|
||||
|
||||
@@ -33,6 +33,7 @@ STARTTEST
|
||||
py3 << EOF
|
||||
d=vim.bindeval('d')
|
||||
d['1']='asd'
|
||||
d.update() # Must not do anything, including throwing errors
|
||||
d.update(b=[1, 2, f])
|
||||
d.update((('-1', {'a': 1}),))
|
||||
d.update({'0': -1})
|
||||
|
||||
Reference in New Issue
Block a user