1
0
forked from VimPlug/jedi

implement slicing for __getitem__ with interpreter

This commit is contained in:
Dave Halter
2014-04-04 15:09:25 +02:00
parent 09854ae6ca
commit 79e2ec85cc
3 changed files with 39 additions and 18 deletions

View File

@@ -63,3 +63,11 @@ class TestInterpreterAPI(TestCase):
self.check_interpreter_complete('array[2].upper',
locals(),
['upper'])
def test_slice(self):
class Foo():
bar = []
baz = 'xbarx'
self.check_interpreter_complete('getattr(Foo, baz[1:-1]).append',
locals(),
['append'])