/Test/simple.py
Python | 63 lines | 51 code | 7 blank | 5 comment | 0 complexity | e9b4377d9c79b817e13673d3bc9b27c4 MD5 | raw file
Possible License(s): GPL-2.0
1"""A long string 2literal 3""" 4 5from bsddb import btopen 6 7# Public global constants 8 9VERSION = '1.2.0' 10 11# Flags for list() and children() 12ALL = 0xff 13KEY = 0x01 14TREEID = 0x02 15INDENT = 0x04 16DATA = 0x08 # Used by dbtreedata 17 18class one: 19 20 x = lambda x: x 21 y = 0 22 23 def __init__(self, filename, pathsep='', treegap=64): 24 """Another string 25 literal""" 26 27 def __private_function__(self, key, data): 28 29 def public_function(self, key): 30 class this_is_ignored: 31 32 def _pack(self, i, s): '''this is''' """a""" '''string 33 literal'''""" 34 class inside_string: 35 """ 36 37 class so_is_this: 38 39def _test(test, code, outcome, exception): 40 def ignored_function(): 41 def more_nesting(): 42 class deeply_nested(): 43 def even_more(): 44 @blah class this is seen??? 45 @bleh def this also? good! 46 47if __name__ == '__main__': 48 49class two (one): 50 51 def only(arg): 52 53# line continuation 54class\ 55three\ 56(A, B, 57C): 58 59def\ 60foo( 61x 62, 63y, z):