first commit

This commit is contained in:
Mysterie
2012-06-05 10:46:41 +02:00
commit b820316f37
82 changed files with 83963 additions and 0 deletions

58
test/test_functions.py Executable file
View File

@@ -0,0 +1,58 @@
# test_functions.py -- source test pattern for functions
#
# This source is part of the decompyle test suite.
#
# decompyle is a Python byte-code decompiler
# See http://www.goebel-consult.de/decompyle/ for download and
# for further information
def x0():
pass
def x1(arg1):
pass
def x2(arg1,arg2):
pass
def x3a(*args):
pass
def x3b(**kwargs):
pass
def x3c(*args, **kwargs):
pass
def x4a(foo, bar=1, bla=2, *args):
pass
def x4b(foo, bar=1, bla=2, **kwargs):
pass
def x4c(foo, bar=1, bla=2, *args, **kwargs):
pass
def func_with_tuple_args((a,b)):
print a
print b
def func_with_tuple_args2((a,b), (c,d)):
print a
print c
def func_with_tuple_args3((a,b), (c,d), *args):
print a
print c
def func_with_tuple_args4((a,b), (c,d), **kwargs):
print a
print c
def func_with_tuple_args5((a,b), (c,d), *args, **kwargs):
print a
print c
def func_with_tuple_args6((a,b), (c,d)=(2,3), *args, **kwargs):
print a
print c