blob: b4abcc28c9041ae32ad4d0ba6fdfaa910ca534b1 [file] [log] [blame]
Bram Moolenaardb913952012-06-29 12:54:53 +02001start:
2[1, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
3[1, 2, function('strlen'), {'a': 1}]
4Vim(put):E684:
5[0, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
6[0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020071
8['-1', '0', '1', 'b', 'f']
9['asd', -1L, <vim.Function '1'>, <vim.dictionary object at >, <vim.list object at >]
10[('-1', <vim.dictionary object at >), ('0', -1L), ('1', 'asd'), ('b', <vim.list object at >), ('f', <vim.Function '1'>)]
Bram Moolenaardb913952012-06-29 12:54:53 +020011'-1' : {'a': 1}
Bram Moolenaara9922d62013-05-30 13:01:18 +020012'0' : -1
Bram Moolenaardb913952012-06-29 12:54:53 +020013'1' : 'asd'
14'b' : [1, 2, function('strlen')]
Bram Moolenaar355fd9b2013-05-30 13:14:13 +020015'f' : function('1')
Bram Moolenaardb913952012-06-29 12:54:53 +020016[0, function('strlen')]
17[3]
Bram Moolenaara9922d62013-05-30 13:01:18 +020018[1, 2, function('strlen')]
19[1, 2, function('strlen')]
201
21'asd'
222
23True
24False
25True
26False
27['0']
28{'0': -1}
Bram Moolenaarde71b562013-06-02 17:41:54 +020029('0', -1L)
Bram Moolenaara9922d62013-05-30 13:01:18 +020030None
31[]
Bram Moolenaardb913952012-06-29 12:54:53 +020032[0, 1, 2, 3]
33[0, 1, 2, 3]
34[0, 1, 3]
35[0, 1]
36[0, 1]
37[0, 1]
38[0, 1, 2, 3]
39[0, 1, 2, 3]
40[0, 2, 3]
41[2, 3]
42[2, 3]
43[2, 3]
44['a', 0, 1, 2, 3]
45[0, 'b', 2, 3]
46[0, 1, 'c']
47[0, 1, 2, 3, 'd']
48[0, 1, 2, 'e', 3]
49['f', 2, 3]
50[0, 1, 'g', 2, 3]
51['h']
52[0, 1, 2, 3]
53[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
54[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
55[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
56Vim(python):E725:
57Vim(python):E117:
58[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020059KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020060TypeError
61TypeError
62ValueError
63TypeError
64TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020065KeyError
66KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020067d : locked:0;scope:0
68dl : locked:1;scope:0
69v: : locked:2;scope:1
70g: : locked:0;scope:2
Bram Moolenaar841fbd22013-06-23 14:37:07 +020071d:{'abc2': 1}
Bram Moolenaar66b79852012-09-21 14:00:35 +020072dl:{'def': 1}
73l : locked:0
74ll : locked:1
75l:[0]
76ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020077[0, 1, 2]
78['a', 'b']
79['c', 1]
80['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200810.0
Bram Moolenaarc11073c2012-09-05 19:17:42 +020082"\0": Vim(let):E859:
83{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010084undefined_name: Vim(let):Trace
Bram Moolenaarc11073c2012-09-05 19:17:42 +020085vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010086[1]
87[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar24b11fb2013-04-05 19:32:36 +020088[0, 1, 2, 3]
89[2, 3, 4, 5]
90[0, 1]
91[4, 5]
92[2, 3]
93[]
94[2, 3]
95[]
96[0, 1, 2, 3, 4, 5]
97[0, 1, 2, 3, 4, 5]
98[0, 1, 2, 3, 4, 5]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +020099Abc
100bac
101def
102bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200103jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200104>>> paste
105 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200106 p/wopts1! KeyError
107 inv: 2! KeyError
108 wopts1! KeyError
109 wopts2! KeyError
110 wopts3! KeyError
111 p/bopts1! KeyError
112 inv: 2! KeyError
113 bopts1! KeyError
114 bopts2! KeyError
115 bopts3! KeyError
116 G: 1
117 W: 1:1 2:1 3:1 4:1
118 B: 1:1 2:1 3:1 4:1
119 del wopts3! KeyError
120 del bopts3! KeyError
121 G: 1
122 W: 1:1 2:1 3:1 4:1
123 B: 1:1 2:1 3:1 4:1
124>>> previewheight
125 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200126 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200127 p/wopts1! KeyError
128 inv: 'a'! KeyError
129 wopts1! KeyError
130 wopts2! KeyError
131 wopts3! KeyError
132 p/bopts1! KeyError
133 inv: 'a'! KeyError
134 bopts1! KeyError
135 bopts2! KeyError
136 bopts3! KeyError
137 G: 5
138 W: 1:5 2:5 3:5 4:5
139 B: 1:5 2:5 3:5 4:5
140 del wopts3! KeyError
141 del bopts3! KeyError
142 G: 5
143 W: 1:5 2:5 3:5 4:5
144 B: 1:5 2:5 3:5 4:5
145>>> operatorfunc
146 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200147 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200148 p/wopts1! KeyError
149 inv: 2! KeyError
150 wopts1! KeyError
151 wopts2! KeyError
152 wopts3! KeyError
153 p/bopts1! KeyError
154 inv: 2! KeyError
155 bopts1! KeyError
156 bopts2! KeyError
157 bopts3! KeyError
158 G: 'A'
159 W: 1:'A' 2:'A' 3:'A' 4:'A'
160 B: 1:'A' 2:'A' 3:'A' 4:'A'
161 del wopts3! KeyError
162 del bopts3! KeyError
163 G: 'A'
164 W: 1:'A' 2:'A' 3:'A' 4:'A'
165 B: 1:'A' 2:'A' 3:'A' 4:'A'
166>>> number
167 p/gopts1! KeyError
168 inv: 0! KeyError
169 gopts1! KeyError
170 p/wopts1: False
171 p/bopts1! KeyError
172 inv: 0! KeyError
173 bopts1! KeyError
174 bopts2! KeyError
175 bopts3! KeyError
176 G: 0
177 W: 1:1 2:1 3:0 4:0
178 B: 1:1 2:1 3:0 4:0
179 del wopts3! ValueError
180 del bopts3! KeyError
181 G: 0
182 W: 1:1 2:1 3:0 4:0
183 B: 1:1 2:1 3:0 4:0
184>>> numberwidth
185 p/gopts1! KeyError
186 inv: -100! KeyError
187 gopts1! KeyError
188 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200189 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200190 p/bopts1! KeyError
191 inv: -100! KeyError
192 bopts1! KeyError
193 bopts2! KeyError
194 bopts3! KeyError
195 G: 8
196 W: 1:3 2:5 3:2 4:8
197 B: 1:3 2:5 3:2 4:8
198 del wopts3! ValueError
199 del bopts3! KeyError
200 G: 8
201 W: 1:3 2:5 3:2 4:8
202 B: 1:3 2:5 3:2 4:8
203>>> colorcolumn
204 p/gopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200205 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200206 gopts1! KeyError
207 p/wopts1: ''
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200208 inv: 'abc4'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200209 p/bopts1! KeyError
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200210 inv: 'abc4'! KeyError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200211 bopts1! KeyError
212 bopts2! KeyError
213 bopts3! KeyError
214 G: ''
215 W: 1:'+2' 2:'+3' 3:'+1' 4:''
216 B: 1:'+2' 2:'+3' 3:'+1' 4:''
217 del wopts3! ValueError
218 del bopts3! KeyError
219 G: ''
220 W: 1:'+2' 2:'+3' 3:'+1' 4:''
221 B: 1:'+2' 2:'+3' 3:'+1' 4:''
222>>> statusline
223 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200224 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200225 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200226 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200227 p/bopts1! KeyError
228 inv: 0! KeyError
229 bopts1! KeyError
230 bopts2! KeyError
231 bopts3! KeyError
232 G: '1'
233 W: 1:'2' 2:'4' 3:'1' 4:'1'
234 B: 1:'2' 2:'4' 3:'1' 4:'1'
235 del bopts3! KeyError
236 G: '1'
237 W: 1:'2' 2:'1' 3:'1' 4:'1'
238 B: 1:'2' 2:'1' 3:'1' 4:'1'
239>>> autoindent
240 p/gopts1! KeyError
241 inv: 2! KeyError
242 gopts1! KeyError
243 p/wopts1! KeyError
244 inv: 2! KeyError
245 wopts1! KeyError
246 wopts2! KeyError
247 wopts3! KeyError
248 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200249 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200250 W: 1:0 2:1 3:0 4:1
251 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200252 del wopts3! KeyError
253 del bopts3! ValueError
254 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200255 W: 1:0 2:1 3:0 4:1
256 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200257>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200258 p/gopts1! KeyError
259 inv: 3! KeyError
260 gopts1! KeyError
261 p/wopts1! KeyError
262 inv: 3! KeyError
263 wopts1! KeyError
264 wopts2! KeyError
265 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200266 p/bopts1: 8
267 G: 8
268 W: 1:0 2:2 3:8 4:1
269 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200270 del wopts3! KeyError
271 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200272 G: 8
273 W: 1:0 2:2 3:8 4:1
274 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200275>>> omnifunc
276 p/gopts1! KeyError
277 inv: 1! KeyError
278 gopts1! KeyError
279 p/wopts1! KeyError
280 inv: 1! KeyError
281 wopts1! KeyError
282 wopts2! KeyError
283 wopts3! KeyError
284 p/bopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200285 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200286 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200287 W: 1:'A' 2:'B' 3:'' 4:'C'
288 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200289 del wopts3! KeyError
290 del bopts3! ValueError
291 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200292 W: 1:'A' 2:'B' 3:'' 4:'C'
293 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200294>>> preserveindent
295 p/gopts1! KeyError
296 inv: 2! KeyError
297 gopts1! KeyError
298 p/wopts1! KeyError
299 inv: 2! KeyError
300 wopts1! KeyError
301 wopts2! KeyError
302 wopts3! KeyError
303 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200304 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200305 W: 1:0 2:1 3:0 4:1
306 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200307 del wopts3! KeyError
308 del bopts3! ValueError
309 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200310 W: 1:0 2:1 3:0 4:1
311 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200312>>> path
Bram Moolenaar04188112013-06-01 20:32:12 +0200313 p/gopts1: '.,..,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200314 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200315 p/wopts1! KeyError
316 inv: 0! KeyError
317 wopts1! KeyError
318 wopts2! KeyError
319 wopts3! KeyError
320 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200321 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200322 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200323 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
324 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200325 del wopts3! KeyError
326 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200327 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
328 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200329First line
330First line
331def
332First line
333Second line
334Third line
335(7, 2)
336<buffer test86.in><buffer >
337baz
338bar
339Second line
340Third line
341foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003421:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003431:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200344testdir/foo
3455:BufFilePre:5
3465:BufFilePost:5
347testdir/bar
3481:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003491:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200350testdir/test86.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200351valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200352i:<buffer test86.in>
353i2:<buffer test86.in>
354i:<buffer a>
355i3:<buffer test86.in>
3561:<buffer test86.in>=<buffer test86.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003578:<buffer a>=<buffer a>
3589:<buffer b>=<buffer b>
35910:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003604
361i4:<buffer test86.in>
362i4:<buffer test86.in>
363StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200364Number of tabs: 4
365Current tab pages:
366 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
367 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200368 <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200369 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
370 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200371 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200372 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
373 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200374 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
375 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200376 <tabpage 3>(4): 4 windows, current is <window 0>
377 Windows:
378 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
379 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
380 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
381 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
382Number of windows in current tab page: 4
383Current tab page: <tabpage 3>
384Current window: <window 0>: <window 0> is <window 0>
385Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
386ValueError at assigning foreign tab window
387Type error at assigning None to vim.current.window
388Type error at assigning None to vim.current.tabpage
389Type error at assigning None to vim.current.buffer
390Current tab page: <tabpage 2>
391Current window: <window 0>
392Current buffer: <buffer test86.in>
393Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200394w.valid: [True, False]
395t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200396vim.vars:Dictionary:True
397vim.options:Options:True
398vim.bindeval("{}"):Dictionary:True
399vim.bindeval("[]"):List:True
400vim.bindeval("function('tr')"):Function:True
401vim.current.buffer:Buffer:True
402vim.current.range:Range:True
403vim.current.window:Window:True
404vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200405current:__dir__,__members__,buffer,line,range,tabpage,window
406buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars
407window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
408tabpage:__dir__,__members__,number,valid,vars,window,windows
409range:__dir__,__members__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200410dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200411list:__dir__,__members__,extend,locked
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200412function:__dir__,__members__,softspace
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200413output:__dir__,__members__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200414{}
415{'a': 1}
416{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200417[]
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200418['a', 'b', 'c', '7']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200419function('tr')
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200420'
421abcdef
422line :
423abcdef
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200424abcA
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200425line :
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200426abcB'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200427['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200428['a', 'a']
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200429['a', 'b', 'c', 'C']
Bram Moolenaar355fd9b2013-05-30 13:14:13 +0200430[2, 2]
431[2, 2]
Bram Moolenaar841fbd22013-06-23 14:37:07 +02004321
4331
434function('Put')
Bram Moolenaarf4258302013-06-02 18:20:17 +0200435testdir
436test86.in
437src
438testdir/test86.in
439testdir
440test86.in
Bram Moolenaar8600e402013-05-30 13:28:41 +0200441> Output
442>> OutputSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200443del sys.stdout.softspace:AttributeError:("can't delete OutputObject attributes",)
Bram Moolenaar141be8a2013-06-23 14:16:57 +0200444sys.stdout.softspace = []:TypeError:('expected int(), long() or something supporting coercing to long(), but got list',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200445sys.stdout.attr = None:AttributeError:('invalid attribute: attr',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200446>> OutputWrite
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200447sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200448>> OutputWriteLines
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200449sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",)
Bram Moolenaar6c85e7f2013-06-23 12:51:32 +0200450sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200451> VimCommand
Bram Moolenaarc476e522013-06-23 13:46:40 +0200452vim.command(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200453> VimToPython
454> VimEval
Bram Moolenaarc476e522013-06-23 13:46:40 +0200455vim.eval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200456> VimEvalPy
Bram Moolenaarc476e522013-06-23 13:46:40 +0200457vim.bindeval(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200458> VimStrwidth
Bram Moolenaarc476e522013-06-23 13:46:40 +0200459vim.strwidth(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200460> Dictionary
461>> DictionaryConstructor
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200462vim.Dictionary("abcI"):ValueError:('expected sequence element of size 2, but got sequence of size 1',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200463>> DictionarySetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200464del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',)
465d.locked = FailingTrue():NotImplementedError:()
466vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200467d.scope = True:AttributeError:('cannot set attribute scope',)
468d.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200469>> _DictionaryItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200470d.get("a", 2, 3):TypeError:('function takes at most 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200471>>> Testing StringToChars using d.get(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200472d.get(1):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200473d.get(u"\0"):TypeError:('expected string without null bytes',)
474d.get("\0"):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200475<<< Finished
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200476d.pop("a"):KeyError:('a',)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200477dl.pop("a"):error:('dictionary is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200478>> DictionaryIterNext
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200479for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200480>> DictionaryAssItem
Bram Moolenaarc476e522013-06-23 13:46:40 +0200481dl["b"] = 1:error:('dictionary is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200482>>> Testing StringToChars using d[%s] = 1
Bram Moolenaarc476e522013-06-23 13:46:40 +0200483d[1] = 1:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200484d[u"\0"] = 1:TypeError:('expected string without null bytes',)
485d["\0"] = 1:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200486<<< Finished
487>>> Testing StringToChars using d["a"] = {%s : 1}
Bram Moolenaarc476e522013-06-23 13:46:40 +0200488d["a"] = {1 : 1}:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200489d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',)
490d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200491<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200492>>> Testing StringToChars using d["a"] = {"abcF" : {%s : 1}}
493d["a"] = {"abcF" : {1 : 1}}:TypeError:('expected str() or unicode() instance, but got int',)
494d["a"] = {"abcF" : {u"\0" : 1}}:TypeError:('expected string without null bytes',)
495d["a"] = {"abcF" : {"\0" : 1}}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200496<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200497>>> Testing StringToChars using d["a"] = {"abcF" : Mapping({%s : 1})}
498d["a"] = {"abcF" : Mapping({1 : 1})}:TypeError:('expected str() or unicode() instance, but got int',)
499d["a"] = {"abcF" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',)
500d["a"] = {"abcF" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200501<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200502>>> Testing *Iter* using d["a"] = {"abcF" : %s}
503d["a"] = {"abcF" : FailingIter()}:TypeError:('unable to convert FailingIter to vim structure',)
504d["a"] = {"abcF" : FailingIterNext()}:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200505<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200506>>> Testing ConvertFromPyObject using d["a"] = {"abcF" : %s}
507d["a"] = {"abcF" : None}:TypeError:('unable to convert NoneType to vim structure',)
508d["a"] = {"abcF" : {"": 1}}:ValueError:('empty keys are not allowed',)
509d["a"] = {"abcF" : {u"": 1}}:ValueError:('empty keys are not allowed',)
510d["a"] = {"abcF" : FailingMapping()}:NotImplementedError:()
511d["a"] = {"abcF" : FailingMappingKey()}:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200512<<< Finished
513>>> Testing StringToChars using d["a"] = Mapping({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200514d["a"] = Mapping({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200515d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',)
516d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200517<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200518>>> Testing StringToChars using d["a"] = Mapping({"abcG" : {%s : 1}})
519d["a"] = Mapping({"abcG" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
520d["a"] = Mapping({"abcG" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
521d["a"] = Mapping({"abcG" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200522<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200523>>> Testing StringToChars using d["a"] = Mapping({"abcG" : Mapping({%s : 1})})
524d["a"] = Mapping({"abcG" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
525d["a"] = Mapping({"abcG" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
526d["a"] = Mapping({"abcG" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200527<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200528>>> Testing *Iter* using d["a"] = Mapping({"abcG" : %s})
529d["a"] = Mapping({"abcG" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
530d["a"] = Mapping({"abcG" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200531<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200532>>> Testing ConvertFromPyObject using d["a"] = Mapping({"abcG" : %s})
533d["a"] = Mapping({"abcG" : None}):TypeError:('unable to convert NoneType to vim structure',)
534d["a"] = Mapping({"abcG" : {"": 1}}):ValueError:('empty keys are not allowed',)
535d["a"] = Mapping({"abcG" : {u"": 1}}):ValueError:('empty keys are not allowed',)
536d["a"] = Mapping({"abcG" : FailingMapping()}):NotImplementedError:()
537d["a"] = Mapping({"abcG" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200538<<< Finished
539>>> Testing *Iter* using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200540d["a"] = FailingIter():TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200541d["a"] = FailingIterNext():NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200542<<< Finished
543>>> Testing ConvertFromPyObject using d["a"] = %s
Bram Moolenaarc476e522013-06-23 13:46:40 +0200544d["a"] = None:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200545d["a"] = {"": 1}:ValueError:('empty keys are not allowed',)
546d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',)
547d["a"] = FailingMapping():NotImplementedError:()
548d["a"] = FailingMappingKey():NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200549<<< Finished
550>> DictionaryUpdate
551>>> kwargs
552>>> iter
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200553d.update(FailingMapping()):NotImplementedError:()
554d.update([FailingIterNext()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200555>>> Testing StringToChars using d.update({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200556d.update({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200557d.update({u"\0" : 1}):TypeError:('expected string without null bytes',)
558d.update({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200559<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200560>>> Testing StringToChars using d.update({"abcF" : {%s : 1}})
561d.update({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
562d.update({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
563d.update({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200564<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200565>>> Testing StringToChars using d.update({"abcF" : Mapping({%s : 1})})
566d.update({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
567d.update({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
568d.update({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200569<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200570>>> Testing *Iter* using d.update({"abcF" : %s})
571d.update({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
572d.update({"abcF" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200573<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200574>>> Testing ConvertFromPyObject using d.update({"abcF" : %s})
575d.update({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
576d.update({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
577d.update({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
578d.update({"abcF" : FailingMapping()}):NotImplementedError:()
579d.update({"abcF" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200580<<< Finished
581>>> Testing StringToChars using d.update(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200582d.update(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200583d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
584d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200585<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200586>>> Testing StringToChars using d.update(Mapping({"abcG" : {%s : 1}}))
587d.update(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
588d.update(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
589d.update(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200590<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200591>>> Testing StringToChars using d.update(Mapping({"abcG" : Mapping({%s : 1})}))
592d.update(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
593d.update(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
594d.update(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200595<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200596>>> Testing *Iter* using d.update(Mapping({"abcG" : %s}))
597d.update(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
598d.update(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200599<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200600>>> Testing ConvertFromPyObject using d.update(Mapping({"abcG" : %s}))
601d.update(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
602d.update(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
603d.update(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
604d.update(Mapping({"abcG" : FailingMapping()})):NotImplementedError:()
605d.update(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200606<<< Finished
607>>> Testing *Iter* using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200608d.update(FailingIter()):NotImplementedError:()
609d.update(FailingIterNext()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200610<<< Finished
611>>> Testing ConvertFromPyObject using d.update(%s)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200612d.update(None):TypeError:("'NoneType' object is not iterable",)
613d.update({"": 1}):ValueError:('empty keys are not allowed',)
614d.update({u"": 1}):ValueError:('empty keys are not allowed',)
615d.update(FailingMapping()):NotImplementedError:()
616d.update(FailingMappingKey()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200617<<< Finished
618>>> Testing StringToChars using d.update(((%s, 0),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200619d.update(((1, 0),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200620d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',)
621d.update((("\0", 0),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200622<<< Finished
623>>> Testing StringToChars using d.update((("a", {%s : 1}),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200624d.update((("a", {1 : 1}),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200625d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',)
626d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200627<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200628>>> Testing StringToChars using d.update((("a", {"abcF" : {%s : 1}}),))
629d.update((("a", {"abcF" : {1 : 1}}),)):TypeError:('expected str() or unicode() instance, but got int',)
630d.update((("a", {"abcF" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',)
631d.update((("a", {"abcF" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200632<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200633>>> Testing StringToChars using d.update((("a", {"abcF" : Mapping({%s : 1})}),))
634d.update((("a", {"abcF" : Mapping({1 : 1})}),)):TypeError:('expected str() or unicode() instance, but got int',)
635d.update((("a", {"abcF" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',)
636d.update((("a", {"abcF" : Mapping({"\0" : 1})}),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200637<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200638>>> Testing *Iter* using d.update((("a", {"abcF" : %s}),))
639d.update((("a", {"abcF" : FailingIter()}),)):TypeError:('unable to convert FailingIter to vim structure',)
640d.update((("a", {"abcF" : FailingIterNext()}),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200641<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200642>>> Testing ConvertFromPyObject using d.update((("a", {"abcF" : %s}),))
643d.update((("a", {"abcF" : None}),)):TypeError:('unable to convert NoneType to vim structure',)
644d.update((("a", {"abcF" : {"": 1}}),)):ValueError:('empty keys are not allowed',)
645d.update((("a", {"abcF" : {u"": 1}}),)):ValueError:('empty keys are not allowed',)
646d.update((("a", {"abcF" : FailingMapping()}),)):NotImplementedError:()
647d.update((("a", {"abcF" : FailingMappingKey()}),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200648<<< Finished
649>>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200650d.update((("a", Mapping({1 : 1})),)):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200651d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',)
652d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200653<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200654>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : {%s : 1}})),))
655d.update((("a", Mapping({"abcG" : {1 : 1}})),)):TypeError:('expected str() or unicode() instance, but got int',)
656d.update((("a", Mapping({"abcG" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',)
657d.update((("a", Mapping({"abcG" : {"\0" : 1}})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200658<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200659>>> Testing StringToChars using d.update((("a", Mapping({"abcG" : Mapping({%s : 1})})),))
660d.update((("a", Mapping({"abcG" : Mapping({1 : 1})})),)):TypeError:('expected str() or unicode() instance, but got int',)
661d.update((("a", Mapping({"abcG" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',)
662d.update((("a", Mapping({"abcG" : Mapping({"\0" : 1})})),)):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200663<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200664>>> Testing *Iter* using d.update((("a", Mapping({"abcG" : %s})),))
665d.update((("a", Mapping({"abcG" : FailingIter()})),)):TypeError:('unable to convert FailingIter to vim structure',)
666d.update((("a", Mapping({"abcG" : FailingIterNext()})),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200667<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200668>>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abcG" : %s})),))
669d.update((("a", Mapping({"abcG" : None})),)):TypeError:('unable to convert NoneType to vim structure',)
670d.update((("a", Mapping({"abcG" : {"": 1}})),)):ValueError:('empty keys are not allowed',)
671d.update((("a", Mapping({"abcG" : {u"": 1}})),)):ValueError:('empty keys are not allowed',)
672d.update((("a", Mapping({"abcG" : FailingMapping()})),)):NotImplementedError:()
673d.update((("a", Mapping({"abcG" : FailingMappingKey()})),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200674<<< Finished
675>>> Testing *Iter* using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200676d.update((("a", FailingIter()),)):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200677d.update((("a", FailingIterNext()),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200678<<< Finished
679>>> Testing ConvertFromPyObject using d.update((("a", %s),))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200680d.update((("a", None),)):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200681d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',)
682d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',)
683d.update((("a", FailingMapping()),)):NotImplementedError:()
684d.update((("a", FailingMappingKey()),)):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200685<<< Finished
686>> DictionaryPopItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200687d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200688>> DictionaryHasKey
Bram Moolenaar389a1792013-06-23 13:00:44 +0200689d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200690> List
691>> ListConstructor
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200692vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',)
693vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200694>>> Testing StringToChars using vim.List([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200695vim.List([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200696vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
697vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200698<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200699>>> Testing StringToChars using vim.List([{"abcF" : {%s : 1}}])
700vim.List([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
701vim.List([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
702vim.List([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200703<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200704>>> Testing StringToChars using vim.List([{"abcF" : Mapping({%s : 1})}])
705vim.List([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
706vim.List([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
707vim.List([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200708<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200709>>> Testing *Iter* using vim.List([{"abcF" : %s}])
710vim.List([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
711vim.List([{"abcF" : FailingIterNext()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200712<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200713>>> Testing ConvertFromPyObject using vim.List([{"abcF" : %s}])
714vim.List([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
715vim.List([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
716vim.List([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
717vim.List([{"abcF" : FailingMapping()}]):NotImplementedError:()
718vim.List([{"abcF" : FailingMappingKey()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200719<<< Finished
720>>> Testing StringToChars using vim.List([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200721vim.List([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200722vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
723vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200724<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200725>>> Testing StringToChars using vim.List([Mapping({"abcG" : {%s : 1}})])
726vim.List([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
727vim.List([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
728vim.List([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200729<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200730>>> Testing StringToChars using vim.List([Mapping({"abcG" : Mapping({%s : 1})})])
731vim.List([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
732vim.List([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
733vim.List([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200734<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200735>>> Testing *Iter* using vim.List([Mapping({"abcG" : %s})])
736vim.List([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
737vim.List([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200738<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200739>>> Testing ConvertFromPyObject using vim.List([Mapping({"abcG" : %s})])
740vim.List([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
741vim.List([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
742vim.List([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
743vim.List([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:()
744vim.List([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200745<<< Finished
746>>> Testing *Iter* using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200747vim.List([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200748vim.List([FailingIterNext()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200749<<< Finished
750>>> Testing ConvertFromPyObject using vim.List([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200751vim.List([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200752vim.List([{"": 1}]):ValueError:('empty keys are not allowed',)
753vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',)
754vim.List([FailingMapping()]):NotImplementedError:()
755vim.List([FailingMappingKey()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200756<<< Finished
757>> ListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200758l[1000]:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200759>> ListAssItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200760ll[1] = 2:error:('list is locked',)
761l[1000] = 3:IndexError:('list index out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200762>> ListAssSlice
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200763ll[1:100] = "abcJ":error:('list is locked',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200764>>> Testing StringToChars using l[:] = [{%s : 1}]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200765l[:] = [{1 : 1}]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200766l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',)
767l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200768<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200769>>> Testing StringToChars using l[:] = [{"abcF" : {%s : 1}}]
770l[:] = [{"abcF" : {1 : 1}}]:TypeError:('expected str() or unicode() instance, but got int',)
771l[:] = [{"abcF" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',)
772l[:] = [{"abcF" : {"\0" : 1}}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200773<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200774>>> Testing StringToChars using l[:] = [{"abcF" : Mapping({%s : 1})}]
775l[:] = [{"abcF" : Mapping({1 : 1})}]:TypeError:('expected str() or unicode() instance, but got int',)
776l[:] = [{"abcF" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',)
777l[:] = [{"abcF" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200778<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200779>>> Testing *Iter* using l[:] = [{"abcF" : %s}]
780l[:] = [{"abcF" : FailingIter()}]:TypeError:('unable to convert FailingIter to vim structure',)
781l[:] = [{"abcF" : FailingIterNext()}]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200782<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200783>>> Testing ConvertFromPyObject using l[:] = [{"abcF" : %s}]
784l[:] = [{"abcF" : None}]:TypeError:('unable to convert NoneType to vim structure',)
785l[:] = [{"abcF" : {"": 1}}]:ValueError:('empty keys are not allowed',)
786l[:] = [{"abcF" : {u"": 1}}]:ValueError:('empty keys are not allowed',)
787l[:] = [{"abcF" : FailingMapping()}]:NotImplementedError:()
788l[:] = [{"abcF" : FailingMappingKey()}]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200789<<< Finished
790>>> Testing StringToChars using l[:] = [Mapping({%s : 1})]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200791l[:] = [Mapping({1 : 1})]:TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200792l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',)
793l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200794<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200795>>> Testing StringToChars using l[:] = [Mapping({"abcG" : {%s : 1}})]
796l[:] = [Mapping({"abcG" : {1 : 1}})]:TypeError:('expected str() or unicode() instance, but got int',)
797l[:] = [Mapping({"abcG" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',)
798l[:] = [Mapping({"abcG" : {"\0" : 1}})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200799<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200800>>> Testing StringToChars using l[:] = [Mapping({"abcG" : Mapping({%s : 1})})]
801l[:] = [Mapping({"abcG" : Mapping({1 : 1})})]:TypeError:('expected str() or unicode() instance, but got int',)
802l[:] = [Mapping({"abcG" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',)
803l[:] = [Mapping({"abcG" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200804<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200805>>> Testing *Iter* using l[:] = [Mapping({"abcG" : %s})]
806l[:] = [Mapping({"abcG" : FailingIter()})]:TypeError:('unable to convert FailingIter to vim structure',)
807l[:] = [Mapping({"abcG" : FailingIterNext()})]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200808<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200809>>> Testing ConvertFromPyObject using l[:] = [Mapping({"abcG" : %s})]
810l[:] = [Mapping({"abcG" : None})]:TypeError:('unable to convert NoneType to vim structure',)
811l[:] = [Mapping({"abcG" : {"": 1}})]:ValueError:('empty keys are not allowed',)
812l[:] = [Mapping({"abcG" : {u"": 1}})]:ValueError:('empty keys are not allowed',)
813l[:] = [Mapping({"abcG" : FailingMapping()})]:NotImplementedError:()
814l[:] = [Mapping({"abcG" : FailingMappingKey()})]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200815<<< Finished
816>>> Testing *Iter* using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200817l[:] = [FailingIter()]:TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200818l[:] = [FailingIterNext()]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200819<<< Finished
820>>> Testing ConvertFromPyObject using l[:] = [%s]
Bram Moolenaarc476e522013-06-23 13:46:40 +0200821l[:] = [None]:TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200822l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',)
823l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',)
824l[:] = [FailingMapping()]:NotImplementedError:()
825l[:] = [FailingMappingKey()]:NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200826<<< Finished
827>> ListConcatInPlace
Bram Moolenaar8600e402013-05-30 13:28:41 +0200828>>> Testing StringToChars using l.extend([{%s : 1}])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200829l.extend([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200830l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',)
831l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200832<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200833>>> Testing StringToChars using l.extend([{"abcF" : {%s : 1}}])
834l.extend([{"abcF" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',)
835l.extend([{"abcF" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',)
836l.extend([{"abcF" : {"\0" : 1}}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200837<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200838>>> Testing StringToChars using l.extend([{"abcF" : Mapping({%s : 1})}])
839l.extend([{"abcF" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',)
840l.extend([{"abcF" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',)
841l.extend([{"abcF" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200842<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200843>>> Testing *Iter* using l.extend([{"abcF" : %s}])
844l.extend([{"abcF" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',)
845l.extend([{"abcF" : FailingIterNext()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200846<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200847>>> Testing ConvertFromPyObject using l.extend([{"abcF" : %s}])
848l.extend([{"abcF" : None}]):TypeError:('unable to convert NoneType to vim structure',)
849l.extend([{"abcF" : {"": 1}}]):ValueError:('empty keys are not allowed',)
850l.extend([{"abcF" : {u"": 1}}]):ValueError:('empty keys are not allowed',)
851l.extend([{"abcF" : FailingMapping()}]):NotImplementedError:()
852l.extend([{"abcF" : FailingMappingKey()}]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200853<<< Finished
854>>> Testing StringToChars using l.extend([Mapping({%s : 1})])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200855l.extend([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200856l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',)
857l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200858<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200859>>> Testing StringToChars using l.extend([Mapping({"abcG" : {%s : 1}})])
860l.extend([Mapping({"abcG" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',)
861l.extend([Mapping({"abcG" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',)
862l.extend([Mapping({"abcG" : {"\0" : 1}})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200863<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200864>>> Testing StringToChars using l.extend([Mapping({"abcG" : Mapping({%s : 1})})])
865l.extend([Mapping({"abcG" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',)
866l.extend([Mapping({"abcG" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',)
867l.extend([Mapping({"abcG" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200868<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200869>>> Testing *Iter* using l.extend([Mapping({"abcG" : %s})])
870l.extend([Mapping({"abcG" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',)
871l.extend([Mapping({"abcG" : FailingIterNext()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200872<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200873>>> Testing ConvertFromPyObject using l.extend([Mapping({"abcG" : %s})])
874l.extend([Mapping({"abcG" : None})]):TypeError:('unable to convert NoneType to vim structure',)
875l.extend([Mapping({"abcG" : {"": 1}})]):ValueError:('empty keys are not allowed',)
876l.extend([Mapping({"abcG" : {u"": 1}})]):ValueError:('empty keys are not allowed',)
877l.extend([Mapping({"abcG" : FailingMapping()})]):NotImplementedError:()
878l.extend([Mapping({"abcG" : FailingMappingKey()})]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200879<<< Finished
880>>> Testing *Iter* using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200881l.extend([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200882l.extend([FailingIterNext()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200883<<< Finished
884>>> Testing ConvertFromPyObject using l.extend([%s])
Bram Moolenaarc476e522013-06-23 13:46:40 +0200885l.extend([None]):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200886l.extend([{"": 1}]):ValueError:('empty keys are not allowed',)
887l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',)
888l.extend([FailingMapping()]):NotImplementedError:()
889l.extend([FailingMappingKey()]):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200890<<< Finished
891>> ListSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200892del l.locked:AttributeError:('cannot delete vim.List attributes',)
893l.locked = FailingTrue():NotImplementedError:()
Bram Moolenaarc476e522013-06-23 13:46:40 +0200894l.xxx = True:AttributeError:('cannot set attribute xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200895> Function
896>> FunctionConstructor
Bram Moolenaarc476e522013-06-23 13:46:40 +0200897vim.Function("123"):ValueError:('unnamed function 123 does not exist',)
898vim.Function("xxx_non_existent_function_xxx"):ValueError:('function xxx_non_existent_function_xxx does not exist',)
Bram Moolenaar018acca2013-05-30 13:37:28 +0200899vim.Function("xxx#non#existent#function#xxx"):NOT FAILED
Bram Moolenaar8600e402013-05-30 13:28:41 +0200900>> FunctionCall
901>>> Testing StringToChars using f({%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200902f({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200903f({u"\0" : 1}):TypeError:('expected string without null bytes',)
904f({"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200905<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200906>>> Testing StringToChars using f({"abcF" : {%s : 1}})
907f({"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
908f({"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
909f({"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200910<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200911>>> Testing StringToChars using f({"abcF" : Mapping({%s : 1})})
912f({"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
913f({"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
914f({"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200915<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200916>>> Testing *Iter* using f({"abcF" : %s})
917f({"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
918f({"abcF" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200919<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200920>>> Testing ConvertFromPyObject using f({"abcF" : %s})
921f({"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
922f({"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
923f({"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
924f({"abcF" : FailingMapping()}):NotImplementedError:()
925f({"abcF" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200926<<< Finished
927>>> Testing StringToChars using f(Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200928f(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200929f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
930f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200931<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200932>>> Testing StringToChars using f(Mapping({"abcG" : {%s : 1}}))
933f(Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
934f(Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
935f(Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200936<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200937>>> Testing StringToChars using f(Mapping({"abcG" : Mapping({%s : 1})}))
938f(Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
939f(Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
940f(Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200941<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200942>>> Testing *Iter* using f(Mapping({"abcG" : %s}))
943f(Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
944f(Mapping({"abcG" : FailingIterNext()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200945<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200946>>> Testing ConvertFromPyObject using f(Mapping({"abcG" : %s}))
947f(Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
948f(Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
949f(Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
950f(Mapping({"abcG" : FailingMapping()})):NotImplementedError:()
951f(Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200952<<< Finished
953>>> Testing *Iter* using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200954f(FailingIter()):TypeError:('unable to convert FailingIter to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200955f(FailingIterNext()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200956<<< Finished
957>>> Testing ConvertFromPyObject using f(%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +0200958f(None):TypeError:('unable to convert NoneType to vim structure',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200959f({"": 1}):ValueError:('empty keys are not allowed',)
960f({u"": 1}):ValueError:('empty keys are not allowed',)
961f(FailingMapping()):NotImplementedError:()
962f(FailingMappingKey()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200963<<< Finished
964>>> Testing StringToChars using fd(self={%s : 1})
Bram Moolenaarc476e522013-06-23 13:46:40 +0200965fd(self={1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200966fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',)
967fd(self={"\0" : 1}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200968<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200969>>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
970fd(self={"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
971fd(self={"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
972fd(self={"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200973<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200974>>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
975fd(self={"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',)
976fd(self={"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
977fd(self={"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200978<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200979>>> Testing *Iter* using fd(self={"abcF" : %s})
980fd(self={"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',)
981fd(self={"abcF" : FailingIterNext()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200982<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200983>>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
984fd(self={"abcF" : None}):TypeError:('unable to convert NoneType to vim structure',)
985fd(self={"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
986fd(self={"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
987fd(self={"abcF" : FailingMapping()}):NotImplementedError:()
988fd(self={"abcF" : FailingMappingKey()}):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +0200989<<< Finished
990>>> Testing StringToChars using fd(self=Mapping({%s : 1}))
Bram Moolenaarc476e522013-06-23 13:46:40 +0200991fd(self=Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +0200992fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
993fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200994<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +0200995>>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
996fd(self=Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',)
997fd(self=Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
998fd(self=Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +0200999<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001000>>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
1001fd(self=Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',)
1002fd(self=Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
1003fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001004<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001005>>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
1006fd(self=Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',)
1007fd(self=Mapping({"abcG" : FailingIterNext()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +02001008<<< Finished
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001009>>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
1010fd(self=Mapping({"abcG" : None})):TypeError:('unable to convert NoneType to vim structure',)
1011fd(self=Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
1012fd(self=Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
1013fd(self=Mapping({"abcG" : FailingMapping()})):NotImplementedError:()
1014fd(self=Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +02001015<<< Finished
1016>>> Testing *Iter* using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001017fd(self=FailingIter()):TypeError:('unable to convert FailingIter to vim dictionary',)
1018fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001019<<< Finished
1020>>> Testing ConvertFromPyObject using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001021fd(self=None):TypeError:('unable to convert NoneType to vim dictionary',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001022fd(self={"": 1}):ValueError:('empty keys are not allowed',)
1023fd(self={u"": 1}):ValueError:('empty keys are not allowed',)
1024fd(self=FailingMapping()):NotImplementedError:()
1025fd(self=FailingMappingKey()):NotImplementedError:()
Bram Moolenaar8600e402013-05-30 13:28:41 +02001026<<< Finished
1027>>> Testing ConvertFromPyMapping using fd(self=%s)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001028fd(self=[]):TypeError:('unable to convert list to vim dictionary',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001029<<< Finished
1030> TabPage
1031>> TabPageAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001032vim.current.tabpage.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001033> TabList
1034>> TabListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001035vim.tabpages[1000]:IndexError:('no such tab page',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001036> Window
1037>> WindowAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001038vim.current.window.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001039>> WindowSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001040vim.current.window.buffer = 0:TypeError:('readonly attribute: buffer',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001041vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',)
1042vim.current.window.cursor = True:TypeError:('argument must be 2-item sequence, not bool',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001043vim.current.window.height = "abcK":TypeError:('expected int(), long() or something supporting coercing to long(), but got str',)
1044vim.current.window.width = "abcL":TypeError:('expected int(), long() or something supporting coercing to long(), but got str',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001045vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001046> WinList
1047>> WinListItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001048vim.windows[1000]:IndexError:('no such window',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001049> Buffer
1050>> StringToLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001051vim.current.buffer[0] = "\na":error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001052>> SetBufferLine (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001053vim.current.buffer[0] = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001054>> SetBufferLineList (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001055vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',)
1056vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001057>> InsertBufferLines (indirect)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001058vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',)
1059vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',)
1060vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001061>> RBItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001062vim.current.buffer[100000000]:IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001063>> RBAsItem
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001064vim.current.buffer[100000000] = "":IndexError:('line number out of range',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001065>> BufferAttr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001066vim.current.buffer.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001067>> BufferSetattr
Bram Moolenaarc476e522013-06-23 13:46:40 +02001068vim.current.buffer.name = True:TypeError:('expected str() or unicode() instance, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001069vim.current.buffer.xxx = True:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001070>> BufferMark
Bram Moolenaarc476e522013-06-23 13:46:40 +02001071vim.current.buffer.mark(0):TypeError:('expected str() or unicode() instance, but got int',)
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001072vim.current.buffer.mark("abcM"):ValueError:('mark name must be a single character',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001073vim.current.buffer.mark("!"):error:('invalid mark name',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001074>> BufferRange
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001075vim.current.buffer.range(1, 2, 3):TypeError:('function takes exactly 2 arguments (3 given)',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001076> BufMap
1077>> BufMapItem
Bram Moolenaar141be8a2013-06-23 14:16:57 +02001078vim.buffers[None]:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001079vim.buffers[100000000]:KeyError:(100000000,)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001080> Current
1081>> CurrentGetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001082vim.current.xxx:AttributeError:('xxx',)
Bram Moolenaar8600e402013-05-30 13:28:41 +02001083>> CurrentSetattr
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001084vim.current.line = True:TypeError:('bad argument type for built-in operation',)
Bram Moolenaarc476e522013-06-23 13:46:40 +02001085vim.current.buffer = True:TypeError:('expected vim.Buffer object, but got bool',)
1086vim.current.window = True:TypeError:('expected vim.Window object, but got bool',)
1087vim.current.tabpage = True:TypeError:('expected vim.TabPage object, but got bool',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001088vim.current.xxx = True:AttributeError:('xxx',)
Bram Moolenaara9f22202013-06-11 18:48:21 +020010892,xx
Bram Moolenaar9f3685a2013-06-12 14:20:36 +02001090before
1091after
Bram Moolenaar841fbd22013-06-23 14:37:07 +02001092vim.command("throw 'abcN'"):error:('abcN',)
Bram Moolenaar27610ed2013-06-12 14:26:26 +02001093Exe("throw 'def'"):error:('def',)
1094vim.eval("Exe('throw ''ghi''')"):error:('ghi',)
1095vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',)
1096vim.eval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)
1097vim.bindeval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',)