Module Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Print Str NameLoad decorator_list If Call NameLoad NameLoad Str body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Return BoolOpOr CompareIs NameLoad AttributeLoad NameLoad attr CompareIs NameLoad AttributeLoad NameLoad attr decorator_list orelse FunctionDef arguments args NameParam defaults body Return CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list TryExcept body Expr Call NameLoad Str handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Assign NameStore Str Assign NameStore Str ClassDef bases body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assert CompareIn NameLoad TupleLoad NameLoad Str Str Str Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad NameLoad orelse Assign AttributeStore NameLoad attr BinOpAdd NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr Str body Raise NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body If CompareEq NameLoad Num body Raise If CompareEq NameLoad Num body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad body Raise NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Raise NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Str Assert CompareEq Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assign SubscriptStore NameLoad Index Call NameLoad Str Call NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Call NameLoad Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str Assert CompareEq Call NameLoad NameLoad Num Call NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assign SubscriptStore NameLoad Index Call NameLoad Str Call NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Call NameLoad Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Str Assert CompareEq Call NameLoad NameLoad Num Call NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Call NameLoad Str Call NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Call NameLoad Str Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assert CompareEq Call NameLoad NameLoad Str orelse Raise NameLoad Str Assign NameStore Call NameLoad Str Str Assert CompareEq Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr TryExcept body Assign SubscriptStore NameLoad Index TupleLoad Num Num Str handlers ExceptHandler type NameLoad name NameStore body Assert CompareEq Call NameLoad NameLoad Str Call NameLoad NameLoad orelse Raise NameLoad Str TryExcept body Assign SubscriptStore NameLoad Index Str ListLoad Num Num handlers ExceptHandler type NameLoad name NameStore body Assert CompareEq Call NameLoad NameLoad Str Call NameLoad NameLoad orelse Raise NameLoad Str Assign NameStore Call NameLoad Str Str Assert CompareEq Call NameLoad NameLoad Num Assign NameStore Call NameLoad Str Str Assert CompareEq Call NameLoad NameLoad Num Expr Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad Call NameLoad Str Str attr Str TryExcept body Assign NameStore Call NameLoad Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Raise NameLoad Str Global identifier Assign NameStore Num Assign NameStore Call NameLoad Str Str Assert CompareEq Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call NameLoad Str Str handlers ExceptHandler type NameLoad name NameStore body Assert CompareEq Call NameLoad NameLoad Str Call NameLoad NameLoad orelse Raise NameLoad Str Print Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A cPickle N/A time N/A shutil N/A os N/A types N/A __builtin__ N/A keep_all_files 0 N/A ignore_corrupt_dbfiles 0 corruption_warning N/A N/A filename N/A N/A N/A Warning: Discarding corrupt database: filename N/A N/A N/A hasattr types UnicodeType N/A is_string N/A N/A s N/A N/A N/A t N/A type s N/A N/A N/A t N/A types StringType N/A t N/A types UnicodeType N/A N/A is_string N/A N/A s N/A N/A N/A N/A N/A type s N/A types StringType N/A N/A N/A N/A N/A unicode a N/A N/A N/A NameError N/A unicode N/A N/A s N/A N/A N/A s N/A N/A dblite_suffix .dblite N/A tmp_suffix .tmp dblite N/A N/A N/A _open N/A __builtin__ open N/A _cPickle_dump N/A cPickle dump N/A _os_chmod N/A os chmod N/A _os_rename N/A os rename N/A _os_unlink N/A os unlink N/A _shutil_copyfile N/A shutil copyfile N/A _time_time N/A time time __init__ N/A N/A self file_base_name flag mode N/A N/A N/A N/A flag N/A None r w c n N/A N/A flag None N/A N/A flag r N/A N/A base ext N/A N/A N/A os path splitext file_base_name N/A N/A ext dblite_suffix N/A N/A N/A self _file_name file_base_name N/A N/A self _tmp_name N/A base tmp_suffix N/A N/A N/A self _file_name N/A file_base_name dblite_suffix N/A N/A self _tmp_name N/A file_base_name tmp_suffix N/A N/A self _flag flag N/A N/A self _mode mode N/A N/A self _dict N/A N/A N/A self _needs_sync 0 N/A N/A N/A self _flag n N/A N/A N/A N/A self _open N/A self _file_name wb N/A self _mode N/A N/A N/A N/A f N/A N/A self _open N/A self _file_name rb N/A N/A N/A IOError N/A e N/A N/A N/A N/A self _flag c N/A N/A e N/A N/A N/A self _open N/A self _file_name wb N/A self _mode N/A N/A p N/A N/A f read N/A N/A N/A len p 0 N/A N/A N/A N/A N/A self _dict N/A N/A cPickle loads p N/A N/A N/A N/A N/A cPickle UnpicklingError EOFError N/A N/A N/A ignore_corrupt_dbfiles 0 N/A N/A N/A N/A ignore_corrupt_dbfiles 1 N/A N/A N/A corruption_warning N/A self _file_name N/A __del__ N/A N/A self N/A N/A N/A N/A self _needs_sync N/A N/A N/A N/A self sync N/A sync N/A N/A self N/A N/A N/A N/A N/A self _check_writable N/A f N/A N/A self _open N/A self _tmp_name wb N/A self _mode N/A N/A N/A self _cPickle_dump N/A self _dict f 1 N/A N/A N/A f close N/A N/A N/A N/A N/A self _os_chmod N/A self _file_name 511 N/A N/A N/A OSError N/A N/A N/A N/A N/A self _os_unlink N/A self _file_name N/A N/A N/A self _os_rename N/A self _tmp_name N/A self _file_name N/A N/A self _needs_sync 0 N/A keep_all_files N/A N/A N/A N/A self _shutil_copyfile N/A self _file_name N/A N/A N/A self _file_name _ N/A str N/A int N/A N/A self _time_time N/A _check_writable N/A N/A self N/A N/A N/A N/A N/A self _flag r N/A N/A N/A IOError N/A Read-only database: %s N/A self _file_name N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self _dict N/A key N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A self _check_writable N/A N/A N/A is_string key N/A N/A TypeError N/A key `%s' must be a string but is %s N/A key N/A type key N/A N/A N/A is_string value N/A N/A TypeError N/A value `%s' must be a string but is %s N/A value N/A type value N/A N/A N/A self _dict N/A key value N/A N/A self _needs_sync 1 N/A keys N/A N/A self N/A N/A N/A N/A N/A N/A self _dict keys N/A has_key N/A N/A self key N/A N/A N/A N/A key N/A self _dict N/A __contains__ N/A N/A self key N/A N/A N/A N/A key N/A self _dict N/A iterkeys N/A N/A self N/A N/A N/A N/A N/A N/A self _dict iterkeys N/A N/A __iter__ iterkeys __len__ N/A N/A self N/A N/A N/A N/A len N/A self _dict N/A N/A open N/A N/A file flag mode N/A None 438 N/A N/A N/A dblite file flag mode N/A _exercise N/A N/A N/A N/A N/A db N/A open tmp n N/A N/A N/A len db 0 N/A N/A db N/A foo bar N/A N/A N/A db N/A foo bar N/A N/A db N/A N/A unicode ufoo N/A unicode ubar N/A N/A N/A db N/A N/A unicode ufoo N/A unicode ubar N/A N/A N/A db sync N/A db N/A open tmp c N/A N/A N/A len db 2 N/A len db N/A N/A N/A db N/A foo bar N/A N/A db N/A bar foo N/A N/A N/A db N/A bar foo N/A N/A db N/A N/A unicode ubar N/A unicode ufoo N/A N/A N/A db N/A N/A unicode ubar N/A unicode ufoo N/A N/A N/A db sync N/A db N/A open tmp r N/A N/A N/A len db 4 N/A len db N/A N/A N/A db N/A foo bar N/A N/A N/A db N/A bar foo N/A N/A N/A db N/A N/A unicode ufoo N/A unicode ubar N/A N/A N/A db N/A N/A unicode ubar N/A unicode ufoo N/A N/A N/A N/A N/A db sync N/A N/A N/A IOError N/A e N/A N/A N/A N/A str e Read-only database: tmp.dblite N/A N/A RuntimeError IOError expected. N/A db N/A open tmp w N/A N/A N/A len db 4 N/A N/A db N/A ping pong N/A N/A N/A db sync N/A N/A N/A N/A db N/A N/A 1 2 tuple N/A N/A N/A TypeError N/A e N/A N/A N/A N/A str e key `(1, 2)' must be a string but is <type 'tuple'> N/A str e N/A N/A RuntimeError TypeError exception expected N/A N/A N/A N/A db N/A list N/A 1 2 N/A N/A N/A TypeError N/A e N/A N/A N/A N/A str e value `[1, 2]' must be a string but is <type 'list'> N/A str e N/A N/A RuntimeError TypeError exception expected N/A db N/A open tmp r N/A N/A N/A len db 5 N/A db N/A open tmp n N/A N/A N/A len db 0 N/A N/A _open tmp.dblite w N/A db N/A open tmp r N/A N/A N/A N/A _open tmp.dblite w write x N/A N/A N/A db N/A open tmp r N/A N/A N/A N/A cPickle UnpicklingError N/A N/A N/A N/A RuntimeError cPickle exception expected. N/A ignore_corrupt_dbfiles N/A ignore_corrupt_dbfiles 2 N/A db N/A open tmp r N/A N/A N/A len db 0 N/A N/A N/A os unlink tmp.dblite N/A N/A N/A db N/A open tmp w N/A N/A N/A IOError N/A e N/A N/A N/A N/A str e [Errno 2] No such file or directory: 'tmp.dblite' N/A str e N/A N/A RuntimeError IOError expected. N/A OK N/A N/A N/A __name__ __main__ N/A N/A N/A _exercise