Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 1 | start: |
| 2 | [1, 'as''d', [1, 2, function('strlen'), {'a': 1}]] |
| 3 | [1, 2, function('strlen'), {'a': 1}] |
| 4 | Vim(put):E684: |
| 5 | [0, 'as''d', [1, 2, function('strlen'), {'a': 1}]] |
| 6 | [0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 7 | 1 |
| 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 Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 11 | '-1' : {'a': 1} |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 12 | '0' : -1 |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 13 | '1' : 'asd' |
| 14 | 'b' : [1, 2, function('strlen')] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 15 | 'f' : function('1') |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 16 | [0, function('strlen')] |
| 17 | [3] |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 18 | [1, 2, function('strlen')] |
| 19 | [1, 2, function('strlen')] |
| 20 | 1 |
| 21 | 'asd' |
| 22 | 2 |
| 23 | True |
| 24 | False |
| 25 | True |
| 26 | False |
| 27 | ['0'] |
| 28 | {'0': -1} |
Bram Moolenaar | de71b56 | 2013-06-02 17:41:54 +0200 | [diff] [blame] | 29 | ('0', -1L) |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 30 | None |
| 31 | [] |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 32 | [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'] |
| 56 | Vim(python):E725: |
| 57 | Vim(python):E117: |
| 58 | [0.0, 0.0] |
Bram Moolenaar | af6abb9 | 2013-04-24 13:04:26 +0200 | [diff] [blame] | 59 | KeyError |
Bram Moolenaar | c11073c | 2012-09-05 19:17:42 +0200 | [diff] [blame] | 60 | TypeError |
| 61 | TypeError |
| 62 | ValueError |
| 63 | TypeError |
| 64 | TypeError |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 65 | KeyError |
| 66 | KeyError |
Bram Moolenaar | 66b7985 | 2012-09-21 14:00:35 +0200 | [diff] [blame] | 67 | d : locked:0;scope:0 |
| 68 | dl : locked:1;scope:0 |
| 69 | v: : locked:2;scope:1 |
| 70 | g: : locked:0;scope:2 |
| 71 | d:{'abc': 1} |
| 72 | dl:{'def': 1} |
| 73 | l : locked:0 |
| 74 | ll : locked:1 |
| 75 | l:[0] |
| 76 | ll:[1] |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 77 | [0, 1, 2] |
| 78 | ['a', 'b'] |
| 79 | ['c', 1] |
| 80 | ['d', ['e']] |
Bram Moolenaar | db91395 | 2012-06-29 12:54:53 +0200 | [diff] [blame] | 81 | 0.0 |
Bram Moolenaar | c11073c | 2012-09-05 19:17:42 +0200 | [diff] [blame] | 82 | "\0": Vim(let):E859: |
| 83 | {"\0": 1}: Vim(let):E859: |
Bram Moolenaar | 995a8cd | 2013-02-20 16:54:27 +0100 | [diff] [blame] | 84 | undefined_name: Vim(let):Trace |
Bram Moolenaar | c11073c | 2012-09-05 19:17:42 +0200 | [diff] [blame] | 85 | vim: Vim(let):E859: |
Bram Moolenaar | 76d711c | 2013-02-13 14:17:08 +0100 | [diff] [blame] | 86 | [1] |
| 87 | [1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1] |
Bram Moolenaar | 24b11fb | 2013-04-05 19:32:36 +0200 | [diff] [blame] | 88 | [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 Moolenaar | 230bb3f | 2013-04-24 14:07:45 +0200 | [diff] [blame] | 99 | Abc |
| 100 | bac |
| 101 | def |
| 102 | bar |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 103 | jkl |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 104 | >>> paste |
| 105 | p/gopts1: False |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 106 | 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 Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 126 | inv: 'a'! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 127 | 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 Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 147 | inv: 2! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 148 | 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 Moolenaar | c96ebe7 | 2013-05-21 22:38:18 +0200 | [diff] [blame] | 189 | inv: -100! error |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 190 | 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 |
| 205 | inv: 'abc'! KeyError |
| 206 | gopts1! KeyError |
| 207 | p/wopts1: '' |
Bram Moolenaar | c96ebe7 | 2013-05-21 22:38:18 +0200 | [diff] [blame] | 208 | inv: 'abc'! error |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 209 | p/bopts1! KeyError |
| 210 | inv: 'abc'! KeyError |
| 211 | 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 Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 224 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 225 | p/wopts1: None |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 226 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 227 | 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 Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 249 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 250 | W: 1:0 2:1 3:0 4:1 |
| 251 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 252 | del wopts3! KeyError |
| 253 | del bopts3! ValueError |
| 254 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 255 | W: 1:0 2:1 3:0 4:1 |
| 256 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 55b8ad3 | 2013-05-17 13:38:04 +0200 | [diff] [blame] | 257 | >>> shiftwidth |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 258 | 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 Moolenaar | 55b8ad3 | 2013-05-17 13:38:04 +0200 | [diff] [blame] | 266 | 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 Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 270 | del wopts3! KeyError |
| 271 | del bopts3! ValueError |
Bram Moolenaar | 55b8ad3 | 2013-05-17 13:38:04 +0200 | [diff] [blame] | 272 | G: 8 |
| 273 | W: 1:0 2:2 3:8 4:1 |
| 274 | B: 1:0 2:2 3:8 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 275 | >>> 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 Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 285 | inv: 1! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 286 | G: '' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 287 | W: 1:'A' 2:'B' 3:'' 4:'C' |
| 288 | B: 1:'A' 2:'B' 3:'' 4:'C' |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 289 | del wopts3! KeyError |
| 290 | del bopts3! ValueError |
| 291 | G: '' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 292 | W: 1:'A' 2:'B' 3:'' 4:'C' |
| 293 | B: 1:'A' 2:'B' 3:'' 4:'C' |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 294 | >>> 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 Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 304 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 305 | W: 1:0 2:1 3:0 4:1 |
| 306 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 307 | del wopts3! KeyError |
| 308 | del bopts3! ValueError |
| 309 | G: 0 |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 310 | W: 1:0 2:1 3:0 4:1 |
| 311 | B: 1:0 2:1 3:0 4:1 |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 312 | >>> path |
Bram Moolenaar | 0418811 | 2013-06-01 20:32:12 +0200 | [diff] [blame] | 313 | p/gopts1: '.,..,,' |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 314 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 315 | p/wopts1! KeyError |
| 316 | inv: 0! KeyError |
| 317 | wopts1! KeyError |
| 318 | wopts2! KeyError |
| 319 | wopts3! KeyError |
| 320 | p/bopts1: None |
Bram Moolenaar | 8661b17 | 2013-05-15 15:44:28 +0200 | [diff] [blame] | 321 | inv: 0! TypeError |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 322 | G: '.,,' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 323 | W: 1:'.,,' 2:',,' 3:'.,,' 4:'.' |
| 324 | B: 1:'.,,' 2:',,' 3:'.,,' 4:'.' |
Bram Moolenaar | 84e0f6c | 2013-05-06 03:52:55 +0200 | [diff] [blame] | 325 | del wopts3! KeyError |
| 326 | G: '.,,' |
Bram Moolenaar | dfa38d4 | 2013-05-15 13:38:47 +0200 | [diff] [blame] | 327 | W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,' |
| 328 | B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,' |
Bram Moolenaar | bd80f35 | 2013-05-12 21:16:23 +0200 | [diff] [blame] | 329 | First line |
| 330 | First line |
| 331 | def |
| 332 | First line |
| 333 | Second line |
| 334 | Third line |
| 335 | (7, 2) |
| 336 | <buffer test86.in><buffer > |
| 337 | baz |
| 338 | bar |
| 339 | Second line |
| 340 | Third line |
| 341 | foo |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 342 | 1:BufFilePre:1 |
Bram Moolenaar | 7e28384 | 2013-05-30 11:43:15 +0200 | [diff] [blame] | 343 | 1:BufFilePost:1 |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 344 | testdir/foo |
| 345 | 5:BufFilePre:5 |
| 346 | 5:BufFilePost:5 |
| 347 | testdir/bar |
| 348 | 1:BufFilePre:1 |
Bram Moolenaar | 7e28384 | 2013-05-30 11:43:15 +0200 | [diff] [blame] | 349 | 1:BufFilePost:1 |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 350 | testdir/test86.in |
Bram Moolenaar | 9e822c0 | 2013-05-29 22:15:30 +0200 | [diff] [blame] | 351 | valid: b:False, cb:True |
Bram Moolenaar | b6c589a | 2013-05-15 14:39:52 +0200 | [diff] [blame] | 352 | i:<buffer test86.in> |
| 353 | i2:<buffer test86.in> |
| 354 | i:<buffer a> |
| 355 | i3:<buffer test86.in> |
| 356 | 1:<buffer test86.in>=<buffer test86.in> |
Bram Moolenaar | e9ba516 | 2013-05-29 22:02:22 +0200 | [diff] [blame] | 357 | 8:<buffer a>=<buffer a> |
| 358 | 9:<buffer b>=<buffer b> |
| 359 | 10:<buffer c>=<buffer c> |
Bram Moolenaar | b6c589a | 2013-05-15 14:39:52 +0200 | [diff] [blame] | 360 | 4 |
| 361 | i4:<buffer test86.in> |
| 362 | i4:<buffer test86.in> |
| 363 | StopIteration |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 364 | Number of tabs: 4 |
| 365 | Current tab pages: |
| 366 | <tabpage 0>(1): 1 windows, current is <window object (unknown)> |
| 367 | Windows: |
Bram Moolenaar | 9e822c0 | 2013-05-29 22:15:30 +0200 | [diff] [blame] | 368 | <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (37, 0) |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 369 | <tabpage 1>(2): 1 windows, current is <window object (unknown)> |
| 370 | Windows: |
Bram Moolenaar | cabf80f | 2013-05-17 16:18:33 +0200 | [diff] [blame] | 371 | <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0) |
Bram Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 372 | <tabpage 2>(3): 2 windows, current is <window object (unknown)> |
| 373 | Windows: |
Bram Moolenaar | cabf80f | 2013-05-17 16:18:33 +0200 | [diff] [blame] | 374 | <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 Moolenaar | a472001 | 2013-05-15 16:27:37 +0200 | [diff] [blame] | 376 | <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) |
| 382 | Number of windows in current tab page: 4 |
| 383 | Current tab page: <tabpage 3> |
| 384 | Current window: <window 0>: <window 0> is <window 0> |
| 385 | Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2> |
| 386 | ValueError at assigning foreign tab window |
| 387 | Type error at assigning None to vim.current.window |
| 388 | Type error at assigning None to vim.current.tabpage |
| 389 | Type error at assigning None to vim.current.buffer |
| 390 | Current tab page: <tabpage 2> |
| 391 | Current window: <window 0> |
| 392 | Current buffer: <buffer test86.in> |
| 393 | Current line: 'Type error at assigning None to vim.current.buffer' |
Bram Moolenaar | 9e822c0 | 2013-05-29 22:15:30 +0200 | [diff] [blame] | 394 | w.valid: [True, False] |
| 395 | t.valid: [True, False, True, False] |
Bram Moolenaar | cac867a | 2013-05-21 19:50:34 +0200 | [diff] [blame] | 396 | vim.vars:Dictionary:True |
| 397 | vim.options:Options:True |
| 398 | vim.bindeval("{}"):Dictionary:True |
| 399 | vim.bindeval("[]"):List:True |
| 400 | vim.bindeval("function('tr')"):Function:True |
| 401 | vim.current.buffer:Buffer:True |
| 402 | vim.current.range:Range:True |
| 403 | vim.current.window:Window:True |
| 404 | vim.current.tabpage:TabPage:True |
Bram Moolenaar | dd8aca6 | 2013-05-29 22:36:10 +0200 | [diff] [blame] | 405 | current:__dir__,__members__,buffer,line,range,tabpage,window |
| 406 | buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars |
| 407 | window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars |
| 408 | tabpage:__dir__,__members__,number,valid,vars,window,windows |
| 409 | range:__dir__,__members__,append,end,start |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 410 | dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values |
Bram Moolenaar | dd8aca6 | 2013-05-29 22:36:10 +0200 | [diff] [blame] | 411 | list:__dir__,__members__,extend,locked |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 412 | function:__dir__,__members__,softspace |
Bram Moolenaar | dd8aca6 | 2013-05-29 22:36:10 +0200 | [diff] [blame] | 413 | output:__dir__,__members__,flush,softspace,write,writelines |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 414 | {} |
| 415 | {'a': 1} |
| 416 | {'a': 1} |
Bram Moolenaar | 78cddbe | 2013-05-30 13:05:58 +0200 | [diff] [blame] | 417 | [] |
| 418 | ['a', 'b', 'c'] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 419 | function('tr') |
Bram Moolenaar | 01a7a72 | 2013-05-30 12:26:58 +0200 | [diff] [blame] | 420 | ' |
| 421 | abcdef |
| 422 | line : |
| 423 | abcdef |
| 424 | abc |
| 425 | line : |
| 426 | abc' |
Bram Moolenaar | a9922d6 | 2013-05-30 13:01:18 +0200 | [diff] [blame] | 427 | ['a', 'dup_a'] |
Bram Moolenaar | 78cddbe | 2013-05-30 13:05:58 +0200 | [diff] [blame] | 428 | ['a', 'a'] |
| 429 | ['a', 'b', 'c'] |
Bram Moolenaar | 355fd9b | 2013-05-30 13:14:13 +0200 | [diff] [blame] | 430 | [2, 2] |
| 431 | [2, 2] |
Bram Moolenaar | f425830 | 2013-06-02 18:20:17 +0200 | [diff] [blame] | 432 | testdir |
| 433 | test86.in |
| 434 | src |
| 435 | testdir/test86.in |
| 436 | testdir |
| 437 | test86.in |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 438 | > Output |
| 439 | >> OutputSetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 440 | del sys.stdout.softspace:AttributeError:("can't delete OutputObject attributes",) |
| 441 | sys.stdout.softspace = []:TypeError:('softspace must be an integer',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 442 | sys.stdout.attr = None:AttributeError:('invalid attribute: attr',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 443 | >> OutputWrite |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 444 | sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 445 | >> OutputWriteLines |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 446 | sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",) |
Bram Moolenaar | 6c85e7f | 2013-06-23 12:51:32 +0200 | [diff] [blame] | 447 | sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 448 | > VimCommand |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 449 | vim.command(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 450 | > VimToPython |
| 451 | > VimEval |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 452 | vim.eval(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 453 | > VimEvalPy |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 454 | vim.bindeval(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 455 | > VimStrwidth |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 456 | vim.strwidth(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 457 | > Dictionary |
| 458 | >> DictionaryConstructor |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 459 | vim.Dictionary("abc"):ValueError:('expected sequence element of size 2, but got sequence of size 1',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 460 | >> DictionarySetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 461 | del d.locked:AttributeError:('cannot delete vim.Dictionary attributes',) |
| 462 | d.locked = FailingTrue():NotImplementedError:() |
| 463 | vim.vvars.locked = False:TypeError:('cannot modify fixed dictionary',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 464 | d.scope = True:AttributeError:('cannot set attribute scope',) |
| 465 | d.xxx = True:AttributeError:('cannot set attribute xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 466 | >> _DictionaryItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 467 | d.get("a", 2, 3):TypeError:('function takes at most 2 arguments (3 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 468 | >>> Testing StringToChars using d.get(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 469 | d.get(1):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 470 | d.get(u"\0"):TypeError:('expected string without null bytes',) |
| 471 | d.get("\0"):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 472 | <<< Finished |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 473 | d.pop("a"):KeyError:('a',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 474 | dl.pop("a"):error:('dictionary is locked',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 475 | >> DictionaryIterNext |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 476 | for i in ned: ned["a"] = 1:RuntimeError:('hashtab changed during iteration',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 477 | >> DictionaryAssItem |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 478 | dl["b"] = 1:error:('dictionary is locked',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 479 | >>> Testing StringToChars using d[%s] = 1 |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 480 | d[1] = 1:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 481 | d[u"\0"] = 1:TypeError:('expected string without null bytes',) |
| 482 | d["\0"] = 1:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 483 | <<< Finished |
| 484 | >>> Testing StringToChars using d["a"] = {%s : 1} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 485 | d["a"] = {1 : 1}:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 486 | d["a"] = {u"\0" : 1}:TypeError:('expected string without null bytes',) |
| 487 | d["a"] = {"\0" : 1}:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 488 | <<< Finished |
| 489 | >>> Testing StringToChars using d["a"] = {"abc" : {%s : 1}} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 490 | d["a"] = {"abc" : {1 : 1}}:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 491 | d["a"] = {"abc" : {u"\0" : 1}}:TypeError:('expected string without null bytes',) |
| 492 | d["a"] = {"abc" : {"\0" : 1}}:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 493 | <<< Finished |
| 494 | >>> Testing StringToChars using d["a"] = {"abc" : Mapping({%s : 1})} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 495 | d["a"] = {"abc" : Mapping({1 : 1})}:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 496 | d["a"] = {"abc" : Mapping({u"\0" : 1})}:TypeError:('expected string without null bytes',) |
| 497 | d["a"] = {"abc" : Mapping({"\0" : 1})}:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 498 | <<< Finished |
| 499 | >>> Testing *Iter* using d["a"] = {"abc" : %s} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 500 | d["a"] = {"abc" : FailingIter()}:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 501 | d["a"] = {"abc" : FailingIterNext()}:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 502 | <<< Finished |
| 503 | >>> Testing ConvertFromPyObject using d["a"] = {"abc" : %s} |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 504 | d["a"] = {"abc" : None}:TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 505 | d["a"] = {"abc" : {"": 1}}:ValueError:('empty keys are not allowed',) |
| 506 | d["a"] = {"abc" : {u"": 1}}:ValueError:('empty keys are not allowed',) |
| 507 | d["a"] = {"abc" : FailingMapping()}:NotImplementedError:() |
| 508 | d["a"] = {"abc" : FailingMappingKey()}:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 509 | <<< Finished |
| 510 | >>> Testing StringToChars using d["a"] = Mapping({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 511 | d["a"] = Mapping({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 512 | d["a"] = Mapping({u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 513 | d["a"] = Mapping({"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 514 | <<< Finished |
| 515 | >>> Testing StringToChars using d["a"] = Mapping({"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 516 | d["a"] = Mapping({"abc" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 517 | d["a"] = Mapping({"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 518 | d["a"] = Mapping({"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 519 | <<< Finished |
| 520 | >>> Testing StringToChars using d["a"] = Mapping({"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 521 | d["a"] = Mapping({"abc" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 522 | d["a"] = Mapping({"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 523 | d["a"] = Mapping({"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 524 | <<< Finished |
| 525 | >>> Testing *Iter* using d["a"] = Mapping({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 526 | d["a"] = Mapping({"abc" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 527 | d["a"] = Mapping({"abc" : FailingIterNext()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 528 | <<< Finished |
| 529 | >>> Testing ConvertFromPyObject using d["a"] = Mapping({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 530 | d["a"] = Mapping({"abc" : None}):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 531 | d["a"] = Mapping({"abc" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 532 | d["a"] = Mapping({"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
| 533 | d["a"] = Mapping({"abc" : FailingMapping()}):NotImplementedError:() |
| 534 | d["a"] = Mapping({"abc" : FailingMappingKey()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 535 | <<< Finished |
| 536 | >>> Testing *Iter* using d["a"] = %s |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 537 | d["a"] = FailingIter():TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 538 | d["a"] = FailingIterNext():NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 539 | <<< Finished |
| 540 | >>> Testing ConvertFromPyObject using d["a"] = %s |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 541 | d["a"] = None:TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 542 | d["a"] = {"": 1}:ValueError:('empty keys are not allowed',) |
| 543 | d["a"] = {u"": 1}:ValueError:('empty keys are not allowed',) |
| 544 | d["a"] = FailingMapping():NotImplementedError:() |
| 545 | d["a"] = FailingMappingKey():NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 546 | <<< Finished |
| 547 | >> DictionaryUpdate |
| 548 | >>> kwargs |
| 549 | >>> iter |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 550 | d.update(FailingMapping()):NotImplementedError:() |
| 551 | d.update([FailingIterNext()]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 552 | >>> Testing StringToChars using d.update({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 553 | d.update({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 554 | d.update({u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 555 | d.update({"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 556 | <<< Finished |
| 557 | >>> Testing StringToChars using d.update({"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 558 | d.update({"abc" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 559 | d.update({"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 560 | d.update({"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 561 | <<< Finished |
| 562 | >>> Testing StringToChars using d.update({"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 563 | d.update({"abc" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 564 | d.update({"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 565 | d.update({"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 566 | <<< Finished |
| 567 | >>> Testing *Iter* using d.update({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 568 | d.update({"abc" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 569 | d.update({"abc" : FailingIterNext()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 570 | <<< Finished |
| 571 | >>> Testing ConvertFromPyObject using d.update({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 572 | d.update({"abc" : None}):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 573 | d.update({"abc" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 574 | d.update({"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
| 575 | d.update({"abc" : FailingMapping()}):NotImplementedError:() |
| 576 | d.update({"abc" : FailingMappingKey()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 577 | <<< Finished |
| 578 | >>> Testing StringToChars using d.update(Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 579 | d.update(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 580 | d.update(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',) |
| 581 | d.update(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 582 | <<< Finished |
| 583 | >>> Testing StringToChars using d.update(Mapping({"abc" : {%s : 1}})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 584 | d.update(Mapping({"abc" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 585 | d.update(Mapping({"abc" : {u"\0" : 1}})):TypeError:('expected string without null bytes',) |
| 586 | d.update(Mapping({"abc" : {"\0" : 1}})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 587 | <<< Finished |
| 588 | >>> Testing StringToChars using d.update(Mapping({"abc" : Mapping({%s : 1})})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 589 | d.update(Mapping({"abc" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 590 | d.update(Mapping({"abc" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',) |
| 591 | d.update(Mapping({"abc" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 592 | <<< Finished |
| 593 | >>> Testing *Iter* using d.update(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 594 | d.update(Mapping({"abc" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 595 | d.update(Mapping({"abc" : FailingIterNext()})):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 596 | <<< Finished |
| 597 | >>> Testing ConvertFromPyObject using d.update(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 598 | d.update(Mapping({"abc" : None})):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 599 | d.update(Mapping({"abc" : {"": 1}})):ValueError:('empty keys are not allowed',) |
| 600 | d.update(Mapping({"abc" : {u"": 1}})):ValueError:('empty keys are not allowed',) |
| 601 | d.update(Mapping({"abc" : FailingMapping()})):NotImplementedError:() |
| 602 | d.update(Mapping({"abc" : FailingMappingKey()})):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 603 | <<< Finished |
| 604 | >>> Testing *Iter* using d.update(%s) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 605 | d.update(FailingIter()):NotImplementedError:() |
| 606 | d.update(FailingIterNext()):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 607 | <<< Finished |
| 608 | >>> Testing ConvertFromPyObject using d.update(%s) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 609 | d.update(None):TypeError:("'NoneType' object is not iterable",) |
| 610 | d.update({"": 1}):ValueError:('empty keys are not allowed',) |
| 611 | d.update({u"": 1}):ValueError:('empty keys are not allowed',) |
| 612 | d.update(FailingMapping()):NotImplementedError:() |
| 613 | d.update(FailingMappingKey()):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 614 | <<< Finished |
| 615 | >>> Testing StringToChars using d.update(((%s, 0),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 616 | d.update(((1, 0),)):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 617 | d.update(((u"\0", 0),)):TypeError:('expected string without null bytes',) |
| 618 | d.update((("\0", 0),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 619 | <<< Finished |
| 620 | >>> Testing StringToChars using d.update((("a", {%s : 1}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 621 | d.update((("a", {1 : 1}),)):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 622 | d.update((("a", {u"\0" : 1}),)):TypeError:('expected string without null bytes',) |
| 623 | d.update((("a", {"\0" : 1}),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 624 | <<< Finished |
| 625 | >>> Testing StringToChars using d.update((("a", {"abc" : {%s : 1}}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 626 | d.update((("a", {"abc" : {1 : 1}}),)):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 627 | d.update((("a", {"abc" : {u"\0" : 1}}),)):TypeError:('expected string without null bytes',) |
| 628 | d.update((("a", {"abc" : {"\0" : 1}}),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 629 | <<< Finished |
| 630 | >>> Testing StringToChars using d.update((("a", {"abc" : Mapping({%s : 1})}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 631 | d.update((("a", {"abc" : Mapping({1 : 1})}),)):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 632 | d.update((("a", {"abc" : Mapping({u"\0" : 1})}),)):TypeError:('expected string without null bytes',) |
| 633 | d.update((("a", {"abc" : Mapping({"\0" : 1})}),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 634 | <<< Finished |
| 635 | >>> Testing *Iter* using d.update((("a", {"abc" : %s}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 636 | d.update((("a", {"abc" : FailingIter()}),)):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 637 | d.update((("a", {"abc" : FailingIterNext()}),)):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 638 | <<< Finished |
| 639 | >>> Testing ConvertFromPyObject using d.update((("a", {"abc" : %s}),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 640 | d.update((("a", {"abc" : None}),)):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 641 | d.update((("a", {"abc" : {"": 1}}),)):ValueError:('empty keys are not allowed',) |
| 642 | d.update((("a", {"abc" : {u"": 1}}),)):ValueError:('empty keys are not allowed',) |
| 643 | d.update((("a", {"abc" : FailingMapping()}),)):NotImplementedError:() |
| 644 | d.update((("a", {"abc" : FailingMappingKey()}),)):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 645 | <<< Finished |
| 646 | >>> Testing StringToChars using d.update((("a", Mapping({%s : 1})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 647 | d.update((("a", Mapping({1 : 1})),)):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 648 | d.update((("a", Mapping({u"\0" : 1})),)):TypeError:('expected string without null bytes',) |
| 649 | d.update((("a", Mapping({"\0" : 1})),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 650 | <<< Finished |
| 651 | >>> Testing StringToChars using d.update((("a", Mapping({"abc" : {%s : 1}})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 652 | d.update((("a", Mapping({"abc" : {1 : 1}})),)):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 653 | d.update((("a", Mapping({"abc" : {u"\0" : 1}})),)):TypeError:('expected string without null bytes',) |
| 654 | d.update((("a", Mapping({"abc" : {"\0" : 1}})),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 655 | <<< Finished |
| 656 | >>> Testing StringToChars using d.update((("a", Mapping({"abc" : Mapping({%s : 1})})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 657 | d.update((("a", Mapping({"abc" : Mapping({1 : 1})})),)):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 658 | d.update((("a", Mapping({"abc" : Mapping({u"\0" : 1})})),)):TypeError:('expected string without null bytes',) |
| 659 | d.update((("a", Mapping({"abc" : Mapping({"\0" : 1})})),)):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 660 | <<< Finished |
| 661 | >>> Testing *Iter* using d.update((("a", Mapping({"abc" : %s})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 662 | d.update((("a", Mapping({"abc" : FailingIter()})),)):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 663 | d.update((("a", Mapping({"abc" : FailingIterNext()})),)):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 664 | <<< Finished |
| 665 | >>> Testing ConvertFromPyObject using d.update((("a", Mapping({"abc" : %s})),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 666 | d.update((("a", Mapping({"abc" : None})),)):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 667 | d.update((("a", Mapping({"abc" : {"": 1}})),)):ValueError:('empty keys are not allowed',) |
| 668 | d.update((("a", Mapping({"abc" : {u"": 1}})),)):ValueError:('empty keys are not allowed',) |
| 669 | d.update((("a", Mapping({"abc" : FailingMapping()})),)):NotImplementedError:() |
| 670 | d.update((("a", Mapping({"abc" : FailingMappingKey()})),)):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 671 | <<< Finished |
| 672 | >>> Testing *Iter* using d.update((("a", %s),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 673 | d.update((("a", FailingIter()),)):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 674 | d.update((("a", FailingIterNext()),)):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 675 | <<< Finished |
| 676 | >>> Testing ConvertFromPyObject using d.update((("a", %s),)) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 677 | d.update((("a", None),)):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 678 | d.update((("a", {"": 1}),)):ValueError:('empty keys are not allowed',) |
| 679 | d.update((("a", {u"": 1}),)):ValueError:('empty keys are not allowed',) |
| 680 | d.update((("a", FailingMapping()),)):NotImplementedError:() |
| 681 | d.update((("a", FailingMappingKey()),)):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 682 | <<< Finished |
| 683 | >> DictionaryPopItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 684 | d.popitem(1, 2):TypeError:('popitem() takes no arguments (2 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 685 | >> DictionaryHasKey |
Bram Moolenaar | 389a179 | 2013-06-23 13:00:44 +0200 | [diff] [blame] | 686 | d.has_key():TypeError:('has_key() takes exactly one argument (0 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 687 | > List |
| 688 | >> ListConstructor |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 689 | vim.List(1, 2):TypeError:('function takes at most 1 argument (2 given)',) |
| 690 | vim.List(a=1):TypeError:('list constructor does not accept keyword arguments',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 691 | >>> Testing StringToChars using vim.List([{%s : 1}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 692 | vim.List([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 693 | vim.List([{u"\0" : 1}]):TypeError:('expected string without null bytes',) |
| 694 | vim.List([{"\0" : 1}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 695 | <<< Finished |
| 696 | >>> Testing StringToChars using vim.List([{"abc" : {%s : 1}}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 697 | vim.List([{"abc" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 698 | vim.List([{"abc" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',) |
| 699 | vim.List([{"abc" : {"\0" : 1}}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 700 | <<< Finished |
| 701 | >>> Testing StringToChars using vim.List([{"abc" : Mapping({%s : 1})}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 702 | vim.List([{"abc" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 703 | vim.List([{"abc" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',) |
| 704 | vim.List([{"abc" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 705 | <<< Finished |
| 706 | >>> Testing *Iter* using vim.List([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 707 | vim.List([{"abc" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 708 | vim.List([{"abc" : FailingIterNext()}]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 709 | <<< Finished |
| 710 | >>> Testing ConvertFromPyObject using vim.List([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 711 | vim.List([{"abc" : None}]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 712 | vim.List([{"abc" : {"": 1}}]):ValueError:('empty keys are not allowed',) |
| 713 | vim.List([{"abc" : {u"": 1}}]):ValueError:('empty keys are not allowed',) |
| 714 | vim.List([{"abc" : FailingMapping()}]):NotImplementedError:() |
| 715 | vim.List([{"abc" : FailingMappingKey()}]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 716 | <<< Finished |
| 717 | >>> Testing StringToChars using vim.List([Mapping({%s : 1})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 718 | vim.List([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 719 | vim.List([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',) |
| 720 | vim.List([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 721 | <<< Finished |
| 722 | >>> Testing StringToChars using vim.List([Mapping({"abc" : {%s : 1}})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 723 | vim.List([Mapping({"abc" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 724 | vim.List([Mapping({"abc" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',) |
| 725 | vim.List([Mapping({"abc" : {"\0" : 1}})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 726 | <<< Finished |
| 727 | >>> Testing StringToChars using vim.List([Mapping({"abc" : Mapping({%s : 1})})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 728 | vim.List([Mapping({"abc" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 729 | vim.List([Mapping({"abc" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',) |
| 730 | vim.List([Mapping({"abc" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 731 | <<< Finished |
| 732 | >>> Testing *Iter* using vim.List([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 733 | vim.List([Mapping({"abc" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 734 | vim.List([Mapping({"abc" : FailingIterNext()})]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 735 | <<< Finished |
| 736 | >>> Testing ConvertFromPyObject using vim.List([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 737 | vim.List([Mapping({"abc" : None})]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 738 | vim.List([Mapping({"abc" : {"": 1}})]):ValueError:('empty keys are not allowed',) |
| 739 | vim.List([Mapping({"abc" : {u"": 1}})]):ValueError:('empty keys are not allowed',) |
| 740 | vim.List([Mapping({"abc" : FailingMapping()})]):NotImplementedError:() |
| 741 | vim.List([Mapping({"abc" : FailingMappingKey()})]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 742 | <<< Finished |
| 743 | >>> Testing *Iter* using vim.List([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 744 | vim.List([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 745 | vim.List([FailingIterNext()]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 746 | <<< Finished |
| 747 | >>> Testing ConvertFromPyObject using vim.List([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 748 | vim.List([None]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 749 | vim.List([{"": 1}]):ValueError:('empty keys are not allowed',) |
| 750 | vim.List([{u"": 1}]):ValueError:('empty keys are not allowed',) |
| 751 | vim.List([FailingMapping()]):NotImplementedError:() |
| 752 | vim.List([FailingMappingKey()]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 753 | <<< Finished |
| 754 | >> ListItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 755 | l[1000]:IndexError:('list index out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 756 | >> ListAssItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 757 | ll[1] = 2:error:('list is locked',) |
| 758 | l[1000] = 3:IndexError:('list index out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 759 | >> ListAssSlice |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 760 | ll[1:100] = "abc":error:('list is locked',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 761 | >>> Testing StringToChars using l[:] = [{%s : 1}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 762 | l[:] = [{1 : 1}]:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 763 | l[:] = [{u"\0" : 1}]:TypeError:('expected string without null bytes',) |
| 764 | l[:] = [{"\0" : 1}]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 765 | <<< Finished |
| 766 | >>> Testing StringToChars using l[:] = [{"abc" : {%s : 1}}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 767 | l[:] = [{"abc" : {1 : 1}}]:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 768 | l[:] = [{"abc" : {u"\0" : 1}}]:TypeError:('expected string without null bytes',) |
| 769 | l[:] = [{"abc" : {"\0" : 1}}]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 770 | <<< Finished |
| 771 | >>> Testing StringToChars using l[:] = [{"abc" : Mapping({%s : 1})}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 772 | l[:] = [{"abc" : Mapping({1 : 1})}]:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 773 | l[:] = [{"abc" : Mapping({u"\0" : 1})}]:TypeError:('expected string without null bytes',) |
| 774 | l[:] = [{"abc" : Mapping({"\0" : 1})}]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 775 | <<< Finished |
| 776 | >>> Testing *Iter* using l[:] = [{"abc" : %s}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 777 | l[:] = [{"abc" : FailingIter()}]:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 778 | l[:] = [{"abc" : FailingIterNext()}]:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 779 | <<< Finished |
| 780 | >>> Testing ConvertFromPyObject using l[:] = [{"abc" : %s}] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 781 | l[:] = [{"abc" : None}]:TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 782 | l[:] = [{"abc" : {"": 1}}]:ValueError:('empty keys are not allowed',) |
| 783 | l[:] = [{"abc" : {u"": 1}}]:ValueError:('empty keys are not allowed',) |
| 784 | l[:] = [{"abc" : FailingMapping()}]:NotImplementedError:() |
| 785 | l[:] = [{"abc" : FailingMappingKey()}]:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 786 | <<< Finished |
| 787 | >>> Testing StringToChars using l[:] = [Mapping({%s : 1})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 788 | l[:] = [Mapping({1 : 1})]:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 789 | l[:] = [Mapping({u"\0" : 1})]:TypeError:('expected string without null bytes',) |
| 790 | l[:] = [Mapping({"\0" : 1})]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 791 | <<< Finished |
| 792 | >>> Testing StringToChars using l[:] = [Mapping({"abc" : {%s : 1}})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 793 | l[:] = [Mapping({"abc" : {1 : 1}})]:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 794 | l[:] = [Mapping({"abc" : {u"\0" : 1}})]:TypeError:('expected string without null bytes',) |
| 795 | l[:] = [Mapping({"abc" : {"\0" : 1}})]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 796 | <<< Finished |
| 797 | >>> Testing StringToChars using l[:] = [Mapping({"abc" : Mapping({%s : 1})})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 798 | l[:] = [Mapping({"abc" : Mapping({1 : 1})})]:TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 799 | l[:] = [Mapping({"abc" : Mapping({u"\0" : 1})})]:TypeError:('expected string without null bytes',) |
| 800 | l[:] = [Mapping({"abc" : Mapping({"\0" : 1})})]:TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 801 | <<< Finished |
| 802 | >>> Testing *Iter* using l[:] = [Mapping({"abc" : %s})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 803 | l[:] = [Mapping({"abc" : FailingIter()})]:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 804 | l[:] = [Mapping({"abc" : FailingIterNext()})]:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 805 | <<< Finished |
| 806 | >>> Testing ConvertFromPyObject using l[:] = [Mapping({"abc" : %s})] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 807 | l[:] = [Mapping({"abc" : None})]:TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 808 | l[:] = [Mapping({"abc" : {"": 1}})]:ValueError:('empty keys are not allowed',) |
| 809 | l[:] = [Mapping({"abc" : {u"": 1}})]:ValueError:('empty keys are not allowed',) |
| 810 | l[:] = [Mapping({"abc" : FailingMapping()})]:NotImplementedError:() |
| 811 | l[:] = [Mapping({"abc" : FailingMappingKey()})]:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 812 | <<< Finished |
| 813 | >>> Testing *Iter* using l[:] = [%s] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 814 | l[:] = [FailingIter()]:TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 815 | l[:] = [FailingIterNext()]:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 816 | <<< Finished |
| 817 | >>> Testing ConvertFromPyObject using l[:] = [%s] |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 818 | l[:] = [None]:TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 819 | l[:] = [{"": 1}]:ValueError:('empty keys are not allowed',) |
| 820 | l[:] = [{u"": 1}]:ValueError:('empty keys are not allowed',) |
| 821 | l[:] = [FailingMapping()]:NotImplementedError:() |
| 822 | l[:] = [FailingMappingKey()]:NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 823 | <<< Finished |
| 824 | >> ListConcatInPlace |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 825 | >>> Testing StringToChars using l.extend([{%s : 1}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 826 | l.extend([{1 : 1}]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 827 | l.extend([{u"\0" : 1}]):TypeError:('expected string without null bytes',) |
| 828 | l.extend([{"\0" : 1}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 829 | <<< Finished |
| 830 | >>> Testing StringToChars using l.extend([{"abc" : {%s : 1}}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 831 | l.extend([{"abc" : {1 : 1}}]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 832 | l.extend([{"abc" : {u"\0" : 1}}]):TypeError:('expected string without null bytes',) |
| 833 | l.extend([{"abc" : {"\0" : 1}}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 834 | <<< Finished |
| 835 | >>> Testing StringToChars using l.extend([{"abc" : Mapping({%s : 1})}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 836 | l.extend([{"abc" : Mapping({1 : 1})}]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 837 | l.extend([{"abc" : Mapping({u"\0" : 1})}]):TypeError:('expected string without null bytes',) |
| 838 | l.extend([{"abc" : Mapping({"\0" : 1})}]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 839 | <<< Finished |
| 840 | >>> Testing *Iter* using l.extend([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 841 | l.extend([{"abc" : FailingIter()}]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 842 | l.extend([{"abc" : FailingIterNext()}]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 843 | <<< Finished |
| 844 | >>> Testing ConvertFromPyObject using l.extend([{"abc" : %s}]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 845 | l.extend([{"abc" : None}]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 846 | l.extend([{"abc" : {"": 1}}]):ValueError:('empty keys are not allowed',) |
| 847 | l.extend([{"abc" : {u"": 1}}]):ValueError:('empty keys are not allowed',) |
| 848 | l.extend([{"abc" : FailingMapping()}]):NotImplementedError:() |
| 849 | l.extend([{"abc" : FailingMappingKey()}]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 850 | <<< Finished |
| 851 | >>> Testing StringToChars using l.extend([Mapping({%s : 1})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 852 | l.extend([Mapping({1 : 1})]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 853 | l.extend([Mapping({u"\0" : 1})]):TypeError:('expected string without null bytes',) |
| 854 | l.extend([Mapping({"\0" : 1})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 855 | <<< Finished |
| 856 | >>> Testing StringToChars using l.extend([Mapping({"abc" : {%s : 1}})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 857 | l.extend([Mapping({"abc" : {1 : 1}})]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 858 | l.extend([Mapping({"abc" : {u"\0" : 1}})]):TypeError:('expected string without null bytes',) |
| 859 | l.extend([Mapping({"abc" : {"\0" : 1}})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 860 | <<< Finished |
| 861 | >>> Testing StringToChars using l.extend([Mapping({"abc" : Mapping({%s : 1})})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 862 | l.extend([Mapping({"abc" : Mapping({1 : 1})})]):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 863 | l.extend([Mapping({"abc" : Mapping({u"\0" : 1})})]):TypeError:('expected string without null bytes',) |
| 864 | l.extend([Mapping({"abc" : Mapping({"\0" : 1})})]):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 865 | <<< Finished |
| 866 | >>> Testing *Iter* using l.extend([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 867 | l.extend([Mapping({"abc" : FailingIter()})]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 868 | l.extend([Mapping({"abc" : FailingIterNext()})]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 869 | <<< Finished |
| 870 | >>> Testing ConvertFromPyObject using l.extend([Mapping({"abc" : %s})]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 871 | l.extend([Mapping({"abc" : None})]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 872 | l.extend([Mapping({"abc" : {"": 1}})]):ValueError:('empty keys are not allowed',) |
| 873 | l.extend([Mapping({"abc" : {u"": 1}})]):ValueError:('empty keys are not allowed',) |
| 874 | l.extend([Mapping({"abc" : FailingMapping()})]):NotImplementedError:() |
| 875 | l.extend([Mapping({"abc" : FailingMappingKey()})]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 876 | <<< Finished |
| 877 | >>> Testing *Iter* using l.extend([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 878 | l.extend([FailingIter()]):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 879 | l.extend([FailingIterNext()]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 880 | <<< Finished |
| 881 | >>> Testing ConvertFromPyObject using l.extend([%s]) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 882 | l.extend([None]):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 883 | l.extend([{"": 1}]):ValueError:('empty keys are not allowed',) |
| 884 | l.extend([{u"": 1}]):ValueError:('empty keys are not allowed',) |
| 885 | l.extend([FailingMapping()]):NotImplementedError:() |
| 886 | l.extend([FailingMappingKey()]):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 887 | <<< Finished |
| 888 | >> ListSetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 889 | del l.locked:AttributeError:('cannot delete vim.List attributes',) |
| 890 | l.locked = FailingTrue():NotImplementedError:() |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 891 | l.xxx = True:AttributeError:('cannot set attribute xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 892 | > Function |
| 893 | >> FunctionConstructor |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 894 | vim.Function("123"):ValueError:('unnamed function 123 does not exist',) |
| 895 | vim.Function("xxx_non_existent_function_xxx"):ValueError:('function xxx_non_existent_function_xxx does not exist',) |
Bram Moolenaar | 018acca | 2013-05-30 13:37:28 +0200 | [diff] [blame] | 896 | vim.Function("xxx#non#existent#function#xxx"):NOT FAILED |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 897 | >> FunctionCall |
| 898 | >>> Testing StringToChars using f({%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 899 | f({1 : 1}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 900 | f({u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 901 | f({"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 902 | <<< Finished |
| 903 | >>> Testing StringToChars using f({"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 904 | f({"abc" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 905 | f({"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 906 | f({"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 907 | <<< Finished |
| 908 | >>> Testing StringToChars using f({"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 909 | f({"abc" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 910 | f({"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 911 | f({"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 912 | <<< Finished |
| 913 | >>> Testing *Iter* using f({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 914 | f({"abc" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 915 | f({"abc" : FailingIterNext()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 916 | <<< Finished |
| 917 | >>> Testing ConvertFromPyObject using f({"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 918 | f({"abc" : None}):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 919 | f({"abc" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 920 | f({"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
| 921 | f({"abc" : FailingMapping()}):NotImplementedError:() |
| 922 | f({"abc" : FailingMappingKey()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 923 | <<< Finished |
| 924 | >>> Testing StringToChars using f(Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 925 | f(Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 926 | f(Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',) |
| 927 | f(Mapping({"\0" : 1})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 928 | <<< Finished |
| 929 | >>> Testing StringToChars using f(Mapping({"abc" : {%s : 1}})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 930 | f(Mapping({"abc" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 931 | f(Mapping({"abc" : {u"\0" : 1}})):TypeError:('expected string without null bytes',) |
| 932 | f(Mapping({"abc" : {"\0" : 1}})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 933 | <<< Finished |
| 934 | >>> Testing StringToChars using f(Mapping({"abc" : Mapping({%s : 1})})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 935 | f(Mapping({"abc" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 936 | f(Mapping({"abc" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',) |
| 937 | f(Mapping({"abc" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 938 | <<< Finished |
| 939 | >>> Testing *Iter* using f(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 940 | f(Mapping({"abc" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 941 | f(Mapping({"abc" : FailingIterNext()})):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 942 | <<< Finished |
| 943 | >>> Testing ConvertFromPyObject using f(Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 944 | f(Mapping({"abc" : None})):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 945 | f(Mapping({"abc" : {"": 1}})):ValueError:('empty keys are not allowed',) |
| 946 | f(Mapping({"abc" : {u"": 1}})):ValueError:('empty keys are not allowed',) |
| 947 | f(Mapping({"abc" : FailingMapping()})):NotImplementedError:() |
| 948 | f(Mapping({"abc" : FailingMappingKey()})):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 949 | <<< Finished |
| 950 | >>> Testing *Iter* using f(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 951 | f(FailingIter()):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 952 | f(FailingIterNext()):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 953 | <<< Finished |
| 954 | >>> Testing ConvertFromPyObject using f(%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 955 | f(None):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 956 | f({"": 1}):ValueError:('empty keys are not allowed',) |
| 957 | f({u"": 1}):ValueError:('empty keys are not allowed',) |
| 958 | f(FailingMapping()):NotImplementedError:() |
| 959 | f(FailingMappingKey()):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 960 | <<< Finished |
| 961 | >>> Testing StringToChars using fd(self={%s : 1}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 962 | fd(self={1 : 1}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 963 | fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',) |
| 964 | fd(self={"\0" : 1}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 965 | <<< Finished |
| 966 | >>> Testing StringToChars using fd(self={"abc" : {%s : 1}}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 967 | fd(self={"abc" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 968 | fd(self={"abc" : {u"\0" : 1}}):TypeError:('expected string without null bytes',) |
| 969 | fd(self={"abc" : {"\0" : 1}}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 970 | <<< Finished |
| 971 | >>> Testing StringToChars using fd(self={"abc" : Mapping({%s : 1})}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 972 | fd(self={"abc" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 973 | fd(self={"abc" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',) |
| 974 | fd(self={"abc" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 975 | <<< Finished |
| 976 | >>> Testing *Iter* using fd(self={"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 977 | fd(self={"abc" : FailingIter()}):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 978 | fd(self={"abc" : FailingIterNext()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 979 | <<< Finished |
| 980 | >>> Testing ConvertFromPyObject using fd(self={"abc" : %s}) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 981 | fd(self={"abc" : None}):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 982 | fd(self={"abc" : {"": 1}}):ValueError:('empty keys are not allowed',) |
| 983 | fd(self={"abc" : {u"": 1}}):ValueError:('empty keys are not allowed',) |
| 984 | fd(self={"abc" : FailingMapping()}):NotImplementedError:() |
| 985 | fd(self={"abc" : FailingMappingKey()}):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 986 | <<< Finished |
| 987 | >>> Testing StringToChars using fd(self=Mapping({%s : 1})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 988 | fd(self=Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 989 | fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',) |
| 990 | fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 991 | <<< Finished |
| 992 | >>> Testing StringToChars using fd(self=Mapping({"abc" : {%s : 1}})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 993 | fd(self=Mapping({"abc" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 994 | fd(self=Mapping({"abc" : {u"\0" : 1}})):TypeError:('expected string without null bytes',) |
| 995 | fd(self=Mapping({"abc" : {"\0" : 1}})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 996 | <<< Finished |
| 997 | >>> Testing StringToChars using fd(self=Mapping({"abc" : Mapping({%s : 1})})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 998 | fd(self=Mapping({"abc" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 999 | fd(self=Mapping({"abc" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',) |
| 1000 | fd(self=Mapping({"abc" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1001 | <<< Finished |
| 1002 | >>> Testing *Iter* using fd(self=Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1003 | fd(self=Mapping({"abc" : FailingIter()})):TypeError:('unable to convert FailingIter to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1004 | fd(self=Mapping({"abc" : FailingIterNext()})):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1005 | <<< Finished |
| 1006 | >>> Testing ConvertFromPyObject using fd(self=Mapping({"abc" : %s})) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1007 | fd(self=Mapping({"abc" : None})):TypeError:('unable to convert NoneType to vim structure',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1008 | fd(self=Mapping({"abc" : {"": 1}})):ValueError:('empty keys are not allowed',) |
| 1009 | fd(self=Mapping({"abc" : {u"": 1}})):ValueError:('empty keys are not allowed',) |
| 1010 | fd(self=Mapping({"abc" : FailingMapping()})):NotImplementedError:() |
| 1011 | fd(self=Mapping({"abc" : FailingMappingKey()})):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1012 | <<< Finished |
| 1013 | >>> Testing *Iter* using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1014 | fd(self=FailingIter()):TypeError:('unable to convert FailingIter to vim dictionary',) |
| 1015 | fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to vim dictionary',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1016 | <<< Finished |
| 1017 | >>> Testing ConvertFromPyObject using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1018 | fd(self=None):TypeError:('unable to convert NoneType to vim dictionary',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1019 | fd(self={"": 1}):ValueError:('empty keys are not allowed',) |
| 1020 | fd(self={u"": 1}):ValueError:('empty keys are not allowed',) |
| 1021 | fd(self=FailingMapping()):NotImplementedError:() |
| 1022 | fd(self=FailingMappingKey()):NotImplementedError:() |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1023 | <<< Finished |
| 1024 | >>> Testing ConvertFromPyMapping using fd(self=%s) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1025 | fd(self=[]):TypeError:('unable to convert list to vim dictionary',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1026 | <<< Finished |
| 1027 | > TabPage |
| 1028 | >> TabPageAttr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1029 | vim.current.tabpage.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1030 | > TabList |
| 1031 | >> TabListItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1032 | vim.tabpages[1000]:IndexError:('no such tab page',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1033 | > Window |
| 1034 | >> WindowAttr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1035 | vim.current.window.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1036 | >> WindowSetattr |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1037 | vim.current.window.buffer = 0:TypeError:('readonly attribute: buffer',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1038 | vim.current.window.cursor = (100000000, 100000000):error:('cursor position outside buffer',) |
| 1039 | vim.current.window.cursor = True:TypeError:('argument must be 2-item sequence, not bool',) |
| 1040 | vim.current.window.height = "abc":TypeError:('an integer is required',) |
| 1041 | vim.current.window.width = "abc":TypeError:('an integer is required',) |
| 1042 | vim.current.window.xxxxxx = True:AttributeError:('xxxxxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1043 | > WinList |
| 1044 | >> WinListItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1045 | vim.windows[1000]:IndexError:('no such window',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1046 | > Buffer |
| 1047 | >> StringToLine (indirect) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1048 | vim.current.buffer[0] = "\na":error:('string cannot contain newlines',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1049 | >> SetBufferLine (indirect) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1050 | vim.current.buffer[0] = True:TypeError:('bad argument type for built-in operation',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1051 | >> SetBufferLines (indirect) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1052 | vim.current.buffer[:] = True:TypeError:('bad argument type for built-in operation',) |
| 1053 | vim.current.buffer[:] = ["\na", "bc"]:error:('string cannot contain newlines',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1054 | >> InsertBufferLines (indirect) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1055 | vim.current.buffer.append(None):TypeError:('bad argument type for built-in operation',) |
| 1056 | vim.current.buffer.append(["\na", "bc"]):error:('string cannot contain newlines',) |
| 1057 | vim.current.buffer.append("\nbc"):error:('string cannot contain newlines',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1058 | >> RBItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1059 | vim.current.buffer[100000000]:IndexError:('line number out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1060 | >> RBAsItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1061 | vim.current.buffer[100000000] = "":IndexError:('line number out of range',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1062 | >> BufferAttr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1063 | vim.current.buffer.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1064 | >> BufferSetattr |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1065 | vim.current.buffer.name = True:TypeError:('expected str() or unicode() instance, but got bool',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1066 | vim.current.buffer.xxx = True:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1067 | >> BufferMark |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1068 | vim.current.buffer.mark(0):TypeError:('expected str() or unicode() instance, but got int',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1069 | vim.current.buffer.mark("abc"):ValueError:('mark name must be a single character',) |
| 1070 | vim.current.buffer.mark("!"):error:('invalid mark name',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1071 | >> BufferRange |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1072 | vim.current.buffer.range(1, 2, 3):TypeError:('function takes exactly 2 arguments (3 given)',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1073 | > BufMap |
| 1074 | >> BufMapItem |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1075 | vim.buffers[None]:TypeError:('key must be integer',) |
| 1076 | vim.buffers[100000000]:KeyError:(100000000,) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1077 | > Current |
| 1078 | >> CurrentGetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1079 | vim.current.xxx:AttributeError:('xxx',) |
Bram Moolenaar | 8600e40 | 2013-05-30 13:28:41 +0200 | [diff] [blame] | 1080 | >> CurrentSetattr |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1081 | vim.current.line = True:TypeError:('bad argument type for built-in operation',) |
Bram Moolenaar | c476e52 | 2013-06-23 13:46:40 +0200 | [diff] [blame^] | 1082 | vim.current.buffer = True:TypeError:('expected vim.Buffer object, but got bool',) |
| 1083 | vim.current.window = True:TypeError:('expected vim.Window object, but got bool',) |
| 1084 | vim.current.tabpage = True:TypeError:('expected vim.TabPage object, but got bool',) |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1085 | vim.current.xxx = True:AttributeError:('xxx',) |
Bram Moolenaar | a9f2220 | 2013-06-11 18:48:21 +0200 | [diff] [blame] | 1086 | 2,xx |
Bram Moolenaar | 9f3685a | 2013-06-12 14:20:36 +0200 | [diff] [blame] | 1087 | before |
| 1088 | after |
Bram Moolenaar | 27610ed | 2013-06-12 14:26:26 +0200 | [diff] [blame] | 1089 | vim.command("throw 'abc'"):error:('abc',) |
| 1090 | Exe("throw 'def'"):error:('def',) |
| 1091 | vim.eval("Exe('throw ''ghi''')"):error:('ghi',) |
| 1092 | vim.eval("Exe('echoerr ''jkl''')"):error:('Vim(echoerr):jkl',) |
| 1093 | vim.eval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',) |
| 1094 | vim.bindeval("Exe('xxx_non_existent_command_xxx')"):error:('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',) |