Lines Matching refs:self
641 call assert_equal(1, py3eval("d['f'](self={})"))
856 return ['DictNewStart'] + a:000 + ['DictNewEnd', self]
864 py3 l.extend(list(l[1](1, 2, 3, self={'a': 'b'})))
1033 def __init__(self):
1034 threading.Thread.__init__(self)
1035 self.t = 0
1036 self.running = True
1038 def run(self):
1039 while self.running:
1040 self.t += 1
2123 function:__dir__,args,auto_rebind,self,softspace
2141 \ py3eval('vim.Function(''tr'', self={})'))
2143 \ py3eval('vim.Function(''tr'', args=[123, 3, 4], self={})'))
2151 \ py3eval('vim.Function(''tr'', self={}, auto_rebind=False)'))
2153 \ py3eval('vim.Function(''tr'', args=[123, 3, 4], self={}, auto_rebind=False)'))
2163 return [a:000, self]
2189 pa3 = vim.Function('Args', args=['abcArgsPA3'], self={'abcSelfPA3': 'abcSelfPA3Val'})
2190 pa4 = vim.Function('Args', self={'abcSelfPA4': 'abcSelfPA4Val'})
2199 psa3 = vim.Function('SelfArgs', args=['abcArgsPSA3'], self={'abcSelfPSA3': 'abcSelfPSA3Val'})
2200 psa4 = vim.Function('SelfArgs', self={'abcSelfPSA4': 'abcSelfPSA4Val'})
2201 psa5 = vim.Function('SelfArgs', self={'abcSelfPSA5': 'abcSelfPSA5Val'}, auto_rebind=0)
2202 …psa6 = vim.Function('SelfArgs', args=['abcArgsPSA6'], self={'abcSelfPSA6': 'abcSelfPSA6Val'}, auto…
2205 psa9 = vim.Function('SelfArgs', self={'abcSelfPSA9': 'abcSelfPSA9Val'}, auto_rebind=True)
2206 …psaA = vim.Function('SelfArgs', args=['abcArgsPSAA'], self={'abcSelfPSAA': 'abcSelfPSAAVal'}, auto…
2223 …psar = vim.Function('SelfArgs', args=[{'abcArgsPSAr': 'abcArgsPSArVal'}], self={'abcSelfPSAr': 'ab…
2224 psar.args[0]['abcArgsPSAr2'] = [psar.self, psar.args[0]]
2225 psar.self['rec'] = psar
2226 psar.self['self'] = psar.self
2227 psar.self['args'] = psar.args
2239 pa3: <vim.Function 'Args', args=['abcArgsPA3'], self={'abcSelfPA3': 'abcSelfPA3Val'}>
2240 pa4: <vim.Function 'Args', self={'abcSelfPA4': 'abcSelfPA4Val'}>
2244 psa3: <vim.Function 'SelfArgs', args=['abcArgsPSA3'], self={'abcSelfPSA3': 'abcSelfPSA3Val'}>
2245 psa4: <vim.Function 'SelfArgs', self={'abcSelfPSA4': 'abcSelfPSA4Val'}>
2246 psa5: <vim.Function 'SelfArgs', self={'abcSelfPSA5': 'abcSelfPSA5Val'}>
2247 psa6: <vim.Function 'SelfArgs', args=['abcArgsPSA6'], self={'abcSelfPSA6': 'abcSelfPSA6Val'}>
2250 psa9: <vim.Function 'SelfArgs', self={'abcSelfPSA9': 'abcSelfPSA9Val'}, auto_rebind=True>
2251 …psaA: <vim.Function 'SelfArgs', args=['abcArgsPSAA'], self={'abcSelfPSAA': 'abcSelfPSAAVal'}, auto…
2254 …self': {...}, 'abcSelfPSAr': 'abcSelfPSArVal', 'args': [{...}]}, {...}], 'abcArgsPSAr': 'abcArgsPS…
2324 py3 ecall('a(42, self={"20": 1})', a, 42, self={'20': 1})
2325 py3 ecall('pa1(42, self={"20": 1})', pa1, 42, self={'20': 1})
2326 py3 ecall('pa2(42, self={"20": 1})', pa2, 42, self={'20': 1})
2327 py3 ecall('pa3(42, self={"20": 1})', pa3, 42, self={'20': 1})
2328 py3 ecall('pa4(42, self={"20": 1})', pa4, 42, self={'20': 1})
2329 py3 ecall('sa(42, self={"20": 1})', sa, 42, self={'20': 1})
2330 py3 ecall('psa1(42, self={"20": 1})', psa1, 42, self={'20': 1})
2331 py3 ecall('psa2(42, self={"20": 1})', psa2, 42, self={'20': 1})
2332 py3 ecall('psa3(42, self={"20": 1})', psa3, 42, self={'20': 1})
2333 py3 ecall('psa4(42, self={"20": 1})', psa4, 42, self={'20': 1})
2335 py3 ecall('a(self={"20": 1})', a, self={'20': 1})
2336 py3 ecall('pa1(self={"20": 1})', pa1, self={'20': 1})
2337 py3 ecall('pa2(self={"20": 1})', pa2, self={'20': 1})
2338 py3 ecall('pa3(self={"20": 1})', pa3, self={'20': 1})
2339 py3 ecall('pa4(self={"20": 1})', pa4, self={'20': 1})
2340 py3 ecall('sa(self={"20": 1})', sa, self={'20': 1})
2341 py3 ecall('psa1(self={"20": 1})', psa1, self={'20': 1})
2342 py3 ecall('psa2(self={"20": 1})', psa2, self={'20': 1})
2343 py3 ecall('psa3(self={"20": 1})', psa3, self={'20': 1})
2344 py3 ecall('psa4(self={"20": 1})', psa4, self={'20': 1})
2364 cb.append('a.self: ' + s(a.self))
2365 cb.append('pa1.self: ' + s(pa1.self))
2366 cb.append('pa2.self: ' + s(pa2.self))
2367 cb.append('pa3.self: ' + s(pa3.self))
2368 cb.append('pa4.self: ' + s(pa4.self))
2369 cb.append('sa.self: ' + s(sa.self))
2370 cb.append('psa1.self: ' + s(psa1.self))
2371 cb.append('psa2.self: ' + s(psa2.self))
2372 cb.append('psa3.self: ' + s(psa3.self))
2373 cb.append('psa4.self: ' + s(psa4.self))
2451 a(42, self={"20": 1}): !result: [42]
2452 pa1(42, self={"20": 1}): !result: ['abcArgsPA1', 42]
2453 pa2(42, self={"20": 1}): !result: [42]
2454 pa3(42, self={"20": 1}): !result: ['abcArgsPA3', 42]
2455 pa4(42, self={"20": 1}): !result: [42]
2456 sa(42, self={"20": 1}): !result: [[42], {'20': 1}]
2457 psa1(42, self={"20": 1}): !result: [['abcArgsPSA1', 42], {'20': 1}]
2458 psa2(42, self={"20": 1}): !result: [[42], {'20': 1}]
2459 psa3(42, self={"20": 1}): !result: [['abcArgsPSA3', 42], {'20': 1}]
2460 psa4(42, self={"20": 1}): !result: [[42], {'20': 1}]
2461 a(self={"20": 1}): !result: []
2462 pa1(self={"20": 1}): !result: ['abcArgsPA1']
2463 pa2(self={"20": 1}): !result: []
2464 pa3(self={"20": 1}): !result: ['abcArgsPA3']
2465 pa4(self={"20": 1}): !result: []
2466 sa(self={"20": 1}): !result: [[], {'20': 1}]
2467 psa1(self={"20": 1}): !result: [['abcArgsPSA1'], {'20': 1}]
2468 psa2(self={"20": 1}): !result: [[], {'20': 1}]
2469 psa3(self={"20": 1}): !result: [['abcArgsPSA3'], {'20': 1}]
2470 psa4(self={"20": 1}): !result: [[], {'20': 1}]
2481 a.self: None
2482 pa1.self: None
2483 pa2.self: None
2484 pa3.self: {'abcSelfPA3': 'abcSelfPA3Val'}
2485 pa4.self: {'abcSelfPA4': 'abcSelfPA4Val'}
2486 sa.self: None
2487 psa1.self: None
2488 psa2.self: None
2489 psa3.self: {'abcSelfPSA3': 'abcSelfPSA3Val'}
2490 psa4.self: {'abcSelfPSA4': 'abcSelfPSA4Val'}
2556 def __setitem__(self, key, value):
2557 super(DupDict, self).__setitem__(key, value)
2558 super(DupDict, self).__setitem__('dup_' + key, value)
2563 def __getitem__(self, idx):
2564 return [super(DupList, self).__getitem__(idx)] * 2
2571 def __call__(self, arg):
2572 return super(DupFun, self).__call__(arg, arg)
2672 def __init__(self, d):
2673 self.d = d
2675 def __getitem__(self, key):
2676 return self.d[key]
2678 def keys(self):
2679 return self.d.keys()
2681 def items(self):
2682 return self.d.items()
2726 def __bool__(self):
2730 def __iter__(self):
2734 def __iter__(self):
2735 return self
2737 def __next__(self):
2741 def __init__(self, n):
2742 self.n = n
2744 def __iter__(self):
2745 return self
2747 def __next__(self):
2748 if self.n:
2749 self.n -= 1
2755 def __getitem__(self, item):
2758 def keys(self):
2762 def __getitem__(self):
2765 def keys(self):
2769 def __getitem__(self, idx):
2773 return super(FailingList, self).__getitem__(idx)
2776 def __call__(self):
2780 def __call__(self, path):
2784 def __int__(self):
2928 ee('vim.Function("xxx_non_existent_function_xxx3", self={})')
2929 ee('vim.Function("xxx_non_existent_function_xxx4", args=[], self={})')
2931 ee('vim.Function("tr", self="abcFuncSelf")')
2933 ee('vim.Function("tr", self="abcFuncSelf2", args="abcFuncArgs2")')
2934 ee('vim.Function(self="abcFuncSelf2", args="abcFuncArgs2")')
2935 ee('vim.Function("tr", "", self="abcFuncSelf2", args="abcFuncArgs2")')
2939 convertfrompymapping_test('fd(self=%s)')
3610 …vim.Function("xxx_non_existent_function_xxx3", self={}):(<class 'ValueError'>, ValueError('functio…
3611 …vim.Function("xxx_non_existent_function_xxx4", args=[], self={}):(<class 'ValueError'>, ValueError…
3613 vim.Function("tr", self="abcFuncSelf"):(<class 'AttributeError'>, AttributeError('keys',))
3615 …vim.Function("tr", self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeE…
3616 …vim.Function(self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, AttributeError('…
3617 …vim.Function("tr", "", self="abcFuncSelf2", args="abcFuncArgs2"):(<class 'AttributeError'>, Attrib…
3686 >>> Testing StringToChars using fd(self={%s : 1})
3687 …fd(self={1 : 1}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but got int'…
3688 fd(self={b"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
3689 fd(self={"\0" : 1}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
3691 >>> Testing StringToChars using fd(self={"abcF" : {%s : 1}})
3692 …fd(self={"abcF" : {1 : 1}}):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, b…
3693 fd(self={"abcF" : {b"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
3694 fd(self={"abcF" : {"\0" : 1}}):(<class 'TypeError'>, TypeError('expected bytes with no null',))
3696 >>> Testing StringToChars using fd(self={"abcF" : Mapping({%s : 1})})
3697 …fd(self={"abcF" : Mapping({1 : 1})}):(<class 'TypeError'>, TypeError('expected bytes() or str() in…
3698 …fd(self={"abcF" : Mapping({b"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no n…
3699 …fd(self={"abcF" : Mapping({"\0" : 1})}):(<class 'TypeError'>, TypeError('expected bytes with no nu…
3701 >>> Testing *Iter* using fd(self={"abcF" : %s})
3702 …fd(self={"abcF" : FailingIter()}):(<class 'TypeError'>, TypeError('unable to convert FailingIter t…
3703 …fd(self={"abcF" : FailingIterNext()}):(<class 'NotImplementedError'>, NotImplementedError('next',))
3705 >>> Testing ConvertFromPyObject using fd(self={"abcF" : %s})
3706 fd(self={"abcF" : None}):NOT FAILED
3707 fd(self={"abcF" : {b"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
3708 fd(self={"abcF" : {"": 1}}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
3709 … fd(self={"abcF" : FailingMapping()}):(<class 'NotImplementedError'>, NotImplementedError('keys',))
3710 …fd(self={"abcF" : FailingMappingKey()}):(<class 'NotImplementedError'>, NotImplementedError('getit…
3711 fd(self={"abcF" : FailingNumber()}):(<class 'NotImplementedError'>, NotImplementedError('int',))
3713 >>> Testing StringToChars using fd(self=Mapping({%s : 1}))
3714 …fd(self=Mapping({1 : 1})):(<class 'TypeError'>, TypeError('expected bytes() or str() instance, but…
3715 fd(self=Mapping({b"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
3716 fd(self=Mapping({"\0" : 1})):(<class 'TypeError'>, TypeError('expected bytes with no null',))
3718 >>> Testing StringToChars using fd(self=Mapping({"abcG" : {%s : 1}}))
3719 …fd(self=Mapping({"abcG" : {1 : 1}})):(<class 'TypeError'>, TypeError('expected bytes() or str() in…
3720 …fd(self=Mapping({"abcG" : {b"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no n…
3721 …fd(self=Mapping({"abcG" : {"\0" : 1}})):(<class 'TypeError'>, TypeError('expected bytes with no nu…
3723 >>> Testing StringToChars using fd(self=Mapping({"abcG" : Mapping({%s : 1})}))
3724 …fd(self=Mapping({"abcG" : Mapping({1 : 1})})):(<class 'TypeError'>, TypeError('expected bytes() or…
3725 …fd(self=Mapping({"abcG" : Mapping({b"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes …
3726 …fd(self=Mapping({"abcG" : Mapping({"\0" : 1})})):(<class 'TypeError'>, TypeError('expected bytes w…
3728 >>> Testing *Iter* using fd(self=Mapping({"abcG" : %s}))
3729 …fd(self=Mapping({"abcG" : FailingIter()})):(<class 'TypeError'>, TypeError('unable to convert Fail…
3730 …fd(self=Mapping({"abcG" : FailingIterNext()})):(<class 'NotImplementedError'>, NotImplementedError…
3732 >>> Testing ConvertFromPyObject using fd(self=Mapping({"abcG" : %s}))
3733 fd(self=Mapping({"abcG" : None})):NOT FAILED
3734 …fd(self=Mapping({"abcG" : {b"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowe…
3735 …fd(self=Mapping({"abcG" : {"": 1}})):(<class 'ValueError'>, ValueError('empty keys are not allowed…
3736 …fd(self=Mapping({"abcG" : FailingMapping()})):(<class 'NotImplementedError'>, NotImplementedError(…
3737 …fd(self=Mapping({"abcG" : FailingMappingKey()})):(<class 'NotImplementedError'>, NotImplementedErr…
3738 …fd(self=Mapping({"abcG" : FailingNumber()})):(<class 'NotImplementedError'>, NotImplementedError('…
3740 >>> Testing *Iter* using fd(self=%s)
3741 …fd(self=FailingIter()):(<class 'TypeError'>, TypeError('unable to convert FailingIter to a Vim dic…
3742 …fd(self=FailingIterNext()):(<class 'TypeError'>, TypeError('unable to convert FailingIterNext to a…
3744 >>> Testing ConvertFromPyObject using fd(self=%s)
3745 … fd(self=None):(<class 'TypeError'>, TypeError('unable to convert NoneType to a Vim dictionary',))
3746 fd(self={b"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
3747 fd(self={"": 1}):(<class 'ValueError'>, ValueError('empty keys are not allowed',))
3748 fd(self=FailingMapping()):(<class 'NotImplementedError'>, NotImplementedError('keys',))
3749 …fd(self=FailingMappingKey()):(<class 'NotImplementedError'>, NotImplementedError('getitem:mappingk…
3750 …fd(self=FailingNumber()):(<class 'TypeError'>, TypeError('unable to convert FailingNumber to a Vim…
3752 >>> Testing ConvertFromPyMapping using fd(self=%s)
3753 fd(self=[]):(<class 'AttributeError'>, AttributeError('keys',))