Debian Codegraph @

test/completion/complex.py

raw symbols SCIP
1 """ Mostly for stupid error reports of @dbrgn. :-) """
2
3 import time
4
5 class Foo(object):
6 global time
7 asdf = time
8
9 def asdfy():
10 return Foo
11
12 xorz = getattr(asdfy()(), 'asdf')
13 #? time
14 xorz
15
16
17
18 def args_returner(*args):
19 return args
20
21
22 #? tuple()
23 args_returner(1)[:]
24 #? int()
25 args_returner(1)[:][0]
26
27
28 def kwargs_returner(**kwargs):
29 return kwargs
30
31
32 # TODO This is not really correct, needs correction probably at some point, but
33 # at least it doesn't raise an error.
34 #? int()
35 kwargs_returner(a=1)[:]
36 #?
37 kwargs_returner(b=1)[:][0]