Lines Matching refs:self
48 if expr == 'fd(self=[])':
449 call assert_equal(1, pyeval("d['f'](self={})"))
665 return ['DictNewStart'] + a:000 + ['DictNewEnd', self]
673 py l.extend(list(l[1](1, 2, 3, self={'a': 'b'})))
838 def __init__(self):
839 threading.Thread.__init__(self)
840 self.t = 0
841 self.running = True
843 def run(self):
844 while self.running:
845 self.t += 1
1936 function:__dir__,__members__,args,auto_rebind,self,softspace
1954 \ pyeval('vim.Function(''tr'', self={})'))
1956 \ pyeval('vim.Function(''tr'', args=[123, 3, 4], self={})'))
1964 \ pyeval('vim.Function(''tr'', self={}, auto_rebind=False)'))
1966 \ pyeval('vim.Function(''tr'', args=[123, 3, 4], self={}, auto_rebind=False)'))
1976 return [a:000, self]
2002 pa3 = vim.Function('Args', args=['abcArgsPA3'], self={'abcSelfPA3': 'abcSelfPA3Val'})
2003 pa4 = vim.Function('Args', self={'abcSelfPA4': 'abcSelfPA4Val'})
2012 psa3 = vim.Function('SelfArgs', args=['abcArgsPSA3'], self={'abcSelfPSA3': 'abcSelfPSA3Val'})
2013 psa4 = vim.Function('SelfArgs', self={'abcSelfPSA4': 'abcSelfPSA4Val'})
2014 psa5 = vim.Function('SelfArgs', self={'abcSelfPSA5': 'abcSelfPSA5Val'}, auto_rebind=0)
2015 …psa6 = vim.Function('SelfArgs', args=['abcArgsPSA6'], self={'abcSelfPSA6': 'abcSelfPSA6Val'}, auto…
2018 psa9 = vim.Function('SelfArgs', self={'abcSelfPSA9': 'abcSelfPSA9Val'}, auto_rebind=True)
2019 …psaA = vim.Function('SelfArgs', args=['abcArgsPSAA'], self={'abcSelfPSAA': 'abcSelfPSAAVal'}, auto…
2036 …psar = vim.Function('SelfArgs', args=[{'abcArgsPSAr': 'abcArgsPSArVal'}], self={'abcSelfPSAr': 'ab…
2037 psar.args[0]['abcArgsPSAr2'] = [psar.self, psar.args[0]]
2038 psar.self['rec'] = psar
2039 psar.self['self'] = psar.self
2040 psar.self['args'] = psar.args
2052 pa3: <vim.Function 'Args', args=['abcArgsPA3'], self={'abcSelfPA3': 'abcSelfPA3Val'}>
2053 pa4: <vim.Function 'Args', self={'abcSelfPA4': 'abcSelfPA4Val'}>
2057 psa3: <vim.Function 'SelfArgs', args=['abcArgsPSA3'], self={'abcSelfPSA3': 'abcSelfPSA3Val'}>
2058 psa4: <vim.Function 'SelfArgs', self={'abcSelfPSA4': 'abcSelfPSA4Val'}>
2059 psa5: <vim.Function 'SelfArgs', self={'abcSelfPSA5': 'abcSelfPSA5Val'}>
2060 psa6: <vim.Function 'SelfArgs', args=['abcArgsPSA6'], self={'abcSelfPSA6': 'abcSelfPSA6Val'}>
2063 psa9: <vim.Function 'SelfArgs', self={'abcSelfPSA9': 'abcSelfPSA9Val'}, auto_rebind=True>
2064 …psaA: <vim.Function 'SelfArgs', args=['abcArgsPSAA'], self={'abcSelfPSAA': 'abcSelfPSAAVal'}, auto…
2067 …self': {...}, 'abcSelfPSAr': 'abcSelfPSArVal', 'args': [{...}]}, {...}], 'abcArgsPSAr': 'abcArgsPS…
2137 py ecall('a(42, self={"20": 1})', a, 42, self={'20': 1})
2138 py ecall('pa1(42, self={"20": 1})', pa1, 42, self={'20': 1})
2139 py ecall('pa2(42, self={"20": 1})', pa2, 42, self={'20': 1})
2140 py ecall('pa3(42, self={"20": 1})', pa3, 42, self={'20': 1})
2141 py ecall('pa4(42, self={"20": 1})', pa4, 42, self={'20': 1})
2142 py ecall('sa(42, self={"20": 1})', sa, 42, self={'20': 1})
2143 py ecall('psa1(42, self={"20": 1})', psa1, 42, self={'20': 1})
2144 py ecall('psa2(42, self={"20": 1})', psa2, 42, self={'20': 1})
2145 py ecall('psa3(42, self={"20": 1})', psa3, 42, self={'20': 1})
2146 py ecall('psa4(42, self={"20": 1})', psa4, 42, self={'20': 1})
2148 py ecall('a(self={"20": 1})', a, self={'20': 1})
2149 py ecall('pa1(self={"20": 1})', pa1, self={'20': 1})
2150 py ecall('pa2(self={"20": 1})', pa2, self={'20': 1})
2151 py ecall('pa3(self={"20": 1})', pa3, self={'20': 1})
2152 py ecall('pa4(self={"20": 1})', pa4, self={'20': 1})
2153 py ecall('sa(self={"20": 1})', sa, self={'20': 1})
2154 py ecall('psa1(self={"20": 1})', psa1, self={'20': 1})
2155 py ecall('psa2(self={"20": 1})', psa2, self={'20': 1})
2156 py ecall('psa3(self={"20": 1})', psa3, self={'20': 1})
2157 py ecall('psa4(self={"20": 1})', psa4, self={'20': 1})
2177 cb.append('a.self: ' + s(a.self))
2178 cb.append('pa1.self: ' + s(pa1.self))
2179 cb.append('pa2.self: ' + s(pa2.self))
2180 cb.append('pa3.self: ' + s(pa3.self))
2181 cb.append('pa4.self: ' + s(pa4.self))
2182 cb.append('sa.self: ' + s(sa.self))
2183 cb.append('psa1.self: ' + s(psa1.self))
2184 cb.append('psa2.self: ' + s(psa2.self))
2185 cb.append('psa3.self: ' + s(psa3.self))
2186 cb.append('psa4.self: ' + s(psa4.self))
2264 a(42, self={"20": 1}): !result: [42]
2265 pa1(42, self={"20": 1}): !result: ['abcArgsPA1', 42]
2266 pa2(42, self={"20": 1}): !result: [42]
2267 pa3(42, self={"20": 1}): !result: ['abcArgsPA3', 42]
2268 pa4(42, self={"20": 1}): !result: [42]
2269 sa(42, self={"20": 1}): !result: [[42], {'20': 1}]
2270 psa1(42, self={"20": 1}): !result: [['abcArgsPSA1', 42], {'20': 1}]
2271 psa2(42, self={"20": 1}): !result: [[42], {'20': 1}]
2272 psa3(42, self={"20": 1}): !result: [['abcArgsPSA3', 42], {'20': 1}]
2273 psa4(42, self={"20": 1}): !result: [[42], {'20': 1}]
2274 a(self={"20": 1}): !result: []
2275 pa1(self={"20": 1}): !result: ['abcArgsPA1']
2276 pa2(self={"20": 1}): !result: []
2277 pa3(self={"20": 1}): !result: ['abcArgsPA3']
2278 pa4(self={"20": 1}): !result: []
2279 sa(self={"20": 1}): !result: [[], {'20': 1}]
2280 psa1(self={"20": 1}): !result: [['abcArgsPSA1'], {'20': 1}]
2281 psa2(self={"20": 1}): !result: [[], {'20': 1}]
2282 psa3(self={"20": 1}): !result: [['abcArgsPSA3'], {'20': 1}]
2283 psa4(self={"20": 1}): !result: [[], {'20': 1}]
2294 a.self: None
2295 pa1.self: None
2296 pa2.self: None
2297 pa3.self: {'abcSelfPA3': 'abcSelfPA3Val'}
2298 pa4.self: {'abcSelfPA4': 'abcSelfPA4Val'}
2299 sa.self: None
2300 psa1.self: None
2301 psa2.self: None
2302 psa3.self: {'abcSelfPSA3': 'abcSelfPSA3Val'}
2303 psa4.self: {'abcSelfPSA4': 'abcSelfPSA4Val'}
2369 def __setitem__(self, key, value):
2370 super(DupDict, self).__setitem__(key, value)
2371 super(DupDict, self).__setitem__('dup_' + key, value)
2376 def __getitem__(self, idx):
2377 return [super(DupList, self).__getitem__(idx)] * 2
2384 def __call__(self, arg):
2385 return super(DupFun, self).__call__(arg, arg)
2484 def __init__(self, d):
2485 self.d = d
2487 def __getitem__(self, key):
2488 return self.d[key]
2490 def keys(self):
2491 return self.d.keys()
2493 def items(self):
2494 return self.d.items()
2538 def __nonzero__(self):
2542 def __iter__(self):
2546 def __iter__(self):
2547 return self
2549 def next(self):
2553 def __init__(self, n):
2554 self.n = n
2556 def __iter__(self):
2557 return self
2559 def next(self):
2560 if self.n:
2561 self.n -= 1
2567 def __getitem__(self, item):
2570 def keys(self):
2574 def __getitem__(self):
2577 def keys(self):
2581 def __getitem__(self, idx):
2585 return super(FailingList, self).__getitem__(idx)
2588 def __call__(self):
2592 def __call__(self, path):
2596 def __int__(self):
2740 ee('vim.Function("xxx_non_existent_function_xxx3", self={})')
2741 ee('vim.Function("xxx_non_existent_function_xxx4", args=[], self={})')
2743 ee('vim.Function("tr", self="abcFuncSelf")')
2745 ee('vim.Function("tr", self="abcFuncSelf2", args="abcFuncArgs2")')
2746 ee('vim.Function(self="abcFuncSelf2", args="abcFuncArgs2")')
2747 ee('vim.Function("tr", "", self="abcFuncSelf2", args="abcFuncArgs2")')
2751 convertfrompymapping_test('fd(self=%s)')
3422 …vim.Function("xxx_non_existent_function_xxx3", self={}):ValueError:('function xxx_non_existent_fun…
3423 …vim.Function("xxx_non_existent_function_xxx4", args=[], self={}):ValueError:('function xxx_non_exi…
3425 vim.Function("tr", self="abcFuncSelf"):TypeError:('unable to convert str to a Vim dictionary',)
3427 …vim.Function("tr", self="abcFuncSelf2", args="abcFuncArgs2"):TypeError:('unable to convert str to …
3428 …vim.Function(self="abcFuncSelf2", args="abcFuncArgs2"):TypeError:('unable to convert str to a Vim …
3429 …vim.Function("tr", "", self="abcFuncSelf2", args="abcFuncArgs2"):TypeError:('unable to convert str…
3498 >>> Testing StringToChars using fd(self={%s : 1})
3499 fd(self={1 : 1}):TypeError:('expected str() or unicode() instance, but got int',)
3500 fd(self={u"\0" : 1}):TypeError:('expected string without null bytes',)
3501 fd(self={"\0" : 1}):TypeError:('expected string without null bytes',)
3503 >>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
3504 fd(self={"abcF" : {1 : 1}}):TypeError:('expected str() or unicode() instance, but got int',)
3505 fd(self={"abcF" : {u"\0" : 1}}):TypeError:('expected string without null bytes',)
3506 fd(self={"abcF" : {"\0" : 1}}):TypeError:('expected string without null bytes',)
3508 >>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
3509 …fd(self={"abcF" : Mapping({1 : 1})}):TypeError:('expected str() or unicode() instance, but got int…
3510 fd(self={"abcF" : Mapping({u"\0" : 1})}):TypeError:('expected string without null bytes',)
3511 fd(self={"abcF" : Mapping({"\0" : 1})}):TypeError:('expected string without null bytes',)
3513 >>> Testing *Iter* using fd(self={"abcF" : %s})
3514 … fd(self={"abcF" : FailingIter()}):TypeError:('unable to convert FailingIter to a Vim structure',)
3515 fd(self={"abcF" : FailingIterNext()}):NotImplementedError:('next',)
3517 >>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
3518 fd(self={"abcF" : None}):NOT FAILED
3519 fd(self={"abcF" : {"": 1}}):ValueError:('empty keys are not allowed',)
3520 fd(self={"abcF" : {u"": 1}}):ValueError:('empty keys are not allowed',)
3521 fd(self={"abcF" : FailingMapping()}):NotImplementedError:('keys',)
3522 fd(self={"abcF" : FailingMappingKey()}):NotImplementedError:('getitem:mappingkey',)
3523 fd(self={"abcF" : FailingNumber()}):TypeError:('long() argument must be a string or a number',)
3525 >>> Testing StringToChars using fd(self=Mapping({%s : 1}))
3526 fd(self=Mapping({1 : 1})):TypeError:('expected str() or unicode() instance, but got int',)
3527 fd(self=Mapping({u"\0" : 1})):TypeError:('expected string without null bytes',)
3528 fd(self=Mapping({"\0" : 1})):TypeError:('expected string without null bytes',)
3530 >>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
3531 …fd(self=Mapping({"abcG" : {1 : 1}})):TypeError:('expected str() or unicode() instance, but got int…
3532 fd(self=Mapping({"abcG" : {u"\0" : 1}})):TypeError:('expected string without null bytes',)
3533 fd(self=Mapping({"abcG" : {"\0" : 1}})):TypeError:('expected string without null bytes',)
3535 >>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
3536 …fd(self=Mapping({"abcG" : Mapping({1 : 1})})):TypeError:('expected str() or unicode() instance, bu…
3537 …fd(self=Mapping({"abcG" : Mapping({u"\0" : 1})})):TypeError:('expected string without null bytes',)
3538 … fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):TypeError:('expected string without null bytes',)
3540 >>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
3541 …fd(self=Mapping({"abcG" : FailingIter()})):TypeError:('unable to convert FailingIter to a Vim stru…
3542 fd(self=Mapping({"abcG" : FailingIterNext()})):NotImplementedError:('next',)
3544 >>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
3545 fd(self=Mapping({"abcG" : None})):NOT FAILED
3546 fd(self=Mapping({"abcG" : {"": 1}})):ValueError:('empty keys are not allowed',)
3547 fd(self=Mapping({"abcG" : {u"": 1}})):ValueError:('empty keys are not allowed',)
3548 fd(self=Mapping({"abcG" : FailingMapping()})):NotImplementedError:('keys',)
3549 fd(self=Mapping({"abcG" : FailingMappingKey()})):NotImplementedError:('getitem:mappingkey',)
3550 …fd(self=Mapping({"abcG" : FailingNumber()})):TypeError:('long() argument must be a string or a num…
3552 >>> Testing *Iter* using fd(self=%s)
3553 fd(self=FailingIter()):TypeError:('unable to convert FailingIter to a Vim dictionary',)
3554 fd(self=FailingIterNext()):TypeError:('unable to convert FailingIterNext to a Vim dictionary',)
3556 >>> Testing ConvertFromPyObject using fd(self=%s)
3557 fd(self=None):TypeError:('unable to convert NoneType to a Vim dictionary',)
3558 fd(self={"": 1}):ValueError:('empty keys are not allowed',)
3559 fd(self={u"": 1}):ValueError:('empty keys are not allowed',)
3560 fd(self=FailingMapping()):NotImplementedError:('keys',)
3561 fd(self=FailingMappingKey()):NotImplementedError:('getitem:mappingkey',)
3562 fd(self=FailingNumber()):TypeError:('unable to convert FailingNumber to a Vim dictionary',)
3564 >>> Testing ConvertFromPyMapping using fd(self=%s)
3565 fd(self=[]):TypeError:('unable to convert list to a Vim dictionary',)