mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
75 lines
1.0 KiB
Python
75 lines
1.0 KiB
Python
#!/usr/bin/env python
|
|
|
|
# test comment
|
|
|
|
import datetime
|
|
from token import *
|
|
from time import sleep
|
|
from token import OP as OP_TEST, INDENT as INDENT_TEST
|
|
|
|
aaa = 6; bbb = 13
|
|
ccc = bbb; d = open("test.py");
|
|
|
|
class Intro(object):
|
|
def testing(self, string):
|
|
return string+","
|
|
|
|
class Supi(A, datetime.datetime):
|
|
""" test123 """
|
|
class 2
|
|
|
|
static_var = 0
|
|
def __init__():
|
|
pass
|
|
def test(self):
|
|
import time
|
|
print 1
|
|
return A()
|
|
|
|
class A():
|
|
#class B():
|
|
def test(self):
|
|
return A()
|
|
|
|
a = A()
|
|
|
|
b = a.test()
|
|
|
|
class Empty():
|
|
pass
|
|
def blub():
|
|
|
|
cdef = 5
|
|
def func():
|
|
def test:
|
|
return 2
|
|
cdef = A()
|
|
return test
|
|
|
|
#for i in range(3):
|
|
# asdf = aaa
|
|
# print 'blub'
|
|
|
|
|
|
def ass_test(a):
|
|
"""docstring for assignment test"""
|
|
a -= 1
|
|
b, c, d = (1,2,3)
|
|
del b
|
|
result = int((a+b)*2)
|
|
return result
|
|
|
|
|
|
matrix = [[1,2,3], [4,5,6], [7,8,9]]
|
|
def loop_test(a):
|
|
"""docstring for loop_test"""
|
|
global matrix
|
|
for i in matrix:
|
|
print a
|
|
#while 1:
|
|
# del a
|
|
# print a
|
|
|
|
return Matrix[0,1]
|
|
|