Module Expr Str Import alias Import alias alias Import alias alias Import alias identifier Import alias alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias TryExcept body Import alias alias handlers ExceptHandler body Print Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareNotEq AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print Str NameLoad Expr Call AttributeLoad NameLoad attr Num orelse For NameStore Call NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Break handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call NameLoad TryExcept body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign AttributeStore NameLoad attr Dict If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print Str NameLoad Print Str Expr Call AttributeLoad NameLoad attr Num orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareGtE Call AttributeLoad NameLoad attr Str Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore ListLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad Str handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore NameLoad While BoolOpAnd CompareLt NameLoad NameLoad NameLoad body For NameStore AttributeLoad NameLoad attr body TryExcept body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareLt NameLoad Num body AugAssignAdd NameStore Num Continue Assign NameStore NameLoad Break handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad AugAssignAdd NameStore Num Continue Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str For NameStore AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd SubscriptLoad NameLoad Index AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad NameLoad Str CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While NameLoad body For NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body Continue If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore BinOpAdd NameLoad Num If CompareLtE NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Continue If CompareGt NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad BinOpMult Num NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad While NameLoad body For NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return decorator_list FunctionDef arguments args NameParam defaults body While AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad NameLoad attr NameLoad orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr Delete SubscriptDel AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad orelse If BinOpBitAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr Delete SubscriptDel AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body While AttributeLoad NameLoad attr body TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str NameLoad For NameStore NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad orelse If CompareIn AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body While NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num If CompareEq AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Continue Assign NameStore ListLoad TupleLoad NameLoad NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str Call AttributeLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str NameLoad handlers ExceptHandler type NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str NameLoad Return NameLoad With AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Return orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Print Str For NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Print Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Print BinOpMod Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str While AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad Str If CompareEq Call NameLoad NameLoad Num body Continue orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print Str Call NameLoad NameLoad Continue With AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Num ExceptHandler type NameLoad body Return Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad Return Num Expr Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad NameLoad Index NameLoad orelse If NameLoad body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str Call NameLoad NameLoad Continue Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
@author: Deniz Altinbuken, Emin Gun Sirer
@note: Master class for all nodes
@copyright: See LICENSE
 N/A argparse N/A os sys N/A random struct N/A cPickle pickle N/A time socket select Queue Queue threading Thread RLock Lock Condition Timer Semaphore concoord.enums * concoord.nameserver Nameserver concoord.exception ConnectionError concoord.utils * concoord.message * concoord.pack * concoord.pvalue PValueSet concoord.connection ConnectionPool Connection SelfConnection N/A N/A N/A dns.resolver dns.exception N/A N/A N/A N/A Install dnspython: http://www.dnspython.org/ N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument -a --addr action store dest addr help address for the node N/A N/A N/A parser add_argument -p --port action store dest port type int help port for the node N/A N/A N/A parser add_argument -b --boot action store dest bootstrap help address:port tuple for the bootstrap peer N/A N/A N/A parser add_argument -o --objectname action store dest objectname default help client object dotted name N/A N/A N/A parser add_argument -l --logger action store dest logger default help logger address N/A N/A N/A parser add_argument -n --domainname action store dest domain default help domain name that the nameserver will accept queries for N/A N/A N/A parser add_argument -r --route53 action store_true dest route53 default False help use Route53 (requires a Route53 zone) N/A N/A N/A parser add_argument -w --writetodisk action store_true dest writetodisk default False help writing to disk on/off N/A N/A N/A parser add_argument -d --debug action store_true dest debug default False help debug on/off N/A args N/A N/A parser parse_args Node N/A N/A N/A Node encloses the basic Node behaviour and state that
    are extended by Replicas and Nameservers.
     __init__ N/A N/A self addr port givenbootstraplist debugoption objectname logger writetodisk N/A N/A args addr N/A args port N/A args bootstrap N/A args debug N/A args objectname N/A args logger N/A args writetodisk N/A N/A N/A self addr N/A addr addr N/A findOwnIP N/A N/A self port port N/A N/A self debug debugoption N/A N/A self durable writetodisk N/A N/A self isnameserver N/A N/A args domain N/A N/A self domain N/A args domain N/A N/A self useroute53 N/A args route53 N/A N/A objectname N/A N/A N/A N/A parser print_help N/A N/A N/A self _graceexit 1 N/A N/A self objectname objectname N/A N/A self receivedmessages_semaphore N/A Semaphore 0 N/A N/A self receivedmessages N/A N/A N/A self lock N/A Lock N/A N/A self socket N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A N/A self socket setsockopt N/A socket SOL_SOCKET N/A socket SO_REUSEADDR 1 N/A N/A N/A N/A self socket setsockopt N/A socket IPPROTO_TCP N/A socket TCP_NODELAY 1 N/A N/A N/A N/A self socket setblocking 0 N/A N/A self port N/A N/A N/A N/A N/A N/A N/A self socket bind N/A N/A self addr N/A self port N/A N/A N/A N/A socket error N/A e N/A N/A N/A Cannot bind to port %d N/A self port N/A Socket Error:  e N/A N/A N/A self _graceexit 1 N/A N/A i N/A range 50 N/A N/A N/A self port N/A N/A random randint 14000 15000 N/A N/A N/A N/A N/A N/A self socket bind N/A N/A self addr N/A self port N/A N/A N/A N/A N/A socket error N/A e N/A N/A Socket Error:  e N/A N/A N/A N/A self socket listen 10 N/A N/A self connectionpool N/A ConnectionPool N/A N/A N/A N/A N/A self connectionpool epoll N/A N/A select epoll N/A N/A N/A AttributeError N/A e N/A N/A N/A N/A self connectionpool epoll None N/A logger N/A N/A LOGGERNODE logger N/A N/A LOGGERNODE None N/A N/A self replicas N/A N/A N/A self isnameserver N/A N/A N/A self type NODE_NAMESERVER N/A N/A N/A N/A self nameserver N/A Nameserver N/A self addr N/A self domain N/A self useroute53 N/A self replicas N/A self debug N/A N/A N/A Exception N/A e N/A N/A Error: e N/A Could not start Replica as a Nameserver, exiting. N/A N/A N/A self _graceexit 1 N/A N/A N/A self type NODE_REPLICA N/A N/A self alive True N/A N/A self me N/A Peer N/A self addr N/A self port N/A self type N/A N/A self id N/A %s:%d N/A N/A self addr N/A self port N/A N/A N/A N/A self connectionpool add_connection_to_self N/A self me N/A SelfConnection N/A self receivedmessages N/A self receivedmessages_semaphore N/A N/A self logger N/A Logger N/A %s-%s N/A N/A node_names N/A N/A self type N/A self id lognode LOGGERNODE N/A N/A self isnameserver N/A N/A N/A N/A N/A self nameserver add_logger N/A self logger N/A N/A %s-%s connected. N/A N/A node_names N/A N/A self type N/A self id N/A N/A self nodeliveness N/A N/A N/A self bootstrapset N/A set N/A givenbootstraplist N/A N/A N/A N/A self discoverbootstrap givenbootstraplist N/A N/A N/A self connecttobootstrap N/A N/A self stateuptodate False N/A _getipportpairs N/A N/A self bootaddr bootport N/A N/A N/A node N/A N/A socket getaddrinfo bootaddr bootport N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A N/A Peer N/A N/A node N/A 4 N/A 0 bootport NODE_REPLICA N/A discoverbootstrap N/A N/A self givenbootstraplist N/A N/A N/A bootstrapstrlist N/A N/A givenbootstraplist split , N/A bootstrap bootstrapstrlist N/A N/A N/A N/A N/A bootstrap find : 0 N/A N/A N/A bootaddr bootport N/A N/A bootstrap split : N/A peer N/A N/A self _getipportpairs bootaddr N/A int bootport N/A N/A N/A N/A N/A self bootstrapset add peer N/A N/A answers N/A N/A N/A N/A answers N/A N/A N/A dns resolver query N/A _concoord._tcp. bootstrap SRV N/A N/A N/A N/A N/A N/A dns resolver NXDOMAIN N/A N/A dns exception Timeout N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write DNS Error N/A Cannot resolve %s N/A str bootstrap N/A rdata answers N/A N/A peer N/A N/A self _getipportpairs N/A str N/A rdata target N/A rdata port N/A N/A N/A N/A N/A self bootstrapset append peer N/A connecttobootstrap N/A N/A self N/A N/A N/A tries 0 N/A keeptrying True N/A N/A N/A tries BOOTSTRAPCONNECTTIMEOUT keeptrying N/A N/A bootpeer N/A self bootstrapset N/A N/A N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State N/A trying to connect to bootstrap: %s N/A str bootpeer N/A helomessage N/A create_message MSG_HELO N/A self me N/A successid N/A N/A self send helomessage peer bootpeer N/A N/A successid 0 N/A N/A tries 1 N/A N/A keeptrying False N/A N/A N/A N/A N/A socket error N/A e N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write Socket Error N/A cannot connect to bootstrap: %s N/A str e N/A tries 1 N/A N/A N/A N/A time sleep 1 N/A startservice N/A N/A self N/A N/A N/A receiver_thread N/A Thread target N/A self server_loop name ReceiverThread N/A N/A N/A receiver_thread start N/A main_thread N/A Thread target N/A self handle_messages name MainThread N/A N/A N/A main_thread start N/A ping_thread N/A Timer LIVENESSTIMEOUT N/A self ping_neighbor N/A N/A ping_thread name PingThread N/A N/A N/A ping_thread start N/A nascent_thread N/A Timer NASCENTTIMEOUT N/A self clean_nascent N/A N/A nascent_thread name NascentThread N/A N/A N/A nascent_thread start N/A N/A self debug N/A N/A input_thread N/A Thread target N/A self get_user_input_from_shell name InputThread N/A N/A N/A input_thread start N/A self N/A __str__ N/A N/A self N/A N/A N/A N/A %s NODE %s:%d N/A N/A node_names N/A N/A self type N/A self addr N/A self port N/A statestr N/A N/A self N/A N/A N/A returnstr N/A peer N/A self replicas N/A N/A returnstr N/A N/A node_names N/A N/A peer type N/A  %s:%d
 N/A N/A peer addr N/A peer port N/A N/A N/A hasattr self pendingcommands N/A N/A len N/A self pendingcommands 0 N/A N/A pending N/A N/A join N/A N/A %d: %s N/A cno proposal N/A N/A cno proposal N/A N/A N/A self pendingcommands iteritems N/A returnstr N/A %s
Pending:
%s N/A returnstr pending N/A returnstr N/A ping_neighbor N/A N/A self N/A N/A N/A used to ping neighbors periodically N/A True N/A N/A peer N/A self replicas N/A N/A N/A peer N/A self me N/A N/A N/A N/A peer N/A self nodeliveness N/A N/A nosound N/A N/A N/A time time N/A N/A self nodeliveness N/A peer N/A N/A nosound N/A LIVENESSTIMEOUT 1 N/A N/A nosound LIVENESSTIMEOUT N/A N/A N/A N/A self replicas N/A peer 0 N/A N/A N/A nosound LIVENESSTIMEOUT N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State N/A Sending PING to %s N/A str peer N/A pingmessage N/A create_message MSG_PING N/A self me N/A successid N/A N/A self send pingmessage peer peer N/A N/A N/A successid 0 N/A nosound N/A 2 LIVENESSTIMEOUT N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State Neighbor not responding N/A N/A N/A self replicas N/A peer 1 N/A N/A N/A time sleep LIVENESSTIMEOUT N/A clean_nascent N/A N/A self N/A N/A N/A lastnascentset N/A set N/A N/A True N/A N/A sock N/A N/A lastnascentset intersection N/A N/A self connectionpool nascentsockets N/A N/A N/A N/A N/A N/A self connectionpool activesockets remove sock N/A N/A N/A N/A N/A self connectionpool nascentsockets remove sock N/A lastnascentset N/A N/A self connectionpool nascentsockets N/A N/A N/A time sleep NASCENTTIMEOUT N/A server_loop N/A N/A self N/A N/A N/A Serverloop that listens to multiple connections and accepts new ones.

        Server State
        - inputready: sockets that are ready for reading
        - exceptready: sockets that are ready according to an *exceptional condition*
         N/A N/A N/A N/A self socket listen 10 N/A N/A N/A self connectionpool epoll N/A N/A N/A N/A N/A N/A self connectionpool epoll register N/A N/A N/A self socket fileno N/A select EPOLLIN N/A N/A N/A self use_epoll N/A N/A N/A N/A N/A N/A self connectionpool activesockets add N/A self socket N/A N/A N/A self use_select N/A N/A N/A N/A self socket close N/A N/A use_epoll N/A N/A self N/A N/A N/A N/A self alive N/A N/A N/A N/A events N/A N/A N/A N/A self connectionpool epoll poll 1 N/A N/A fileno event events N/A N/A N/A fileno N/A N/A N/A self socket fileno N/A N/A N/A clientsock clientaddr N/A N/A N/A self socket accept N/A N/A N/A clientsock setblocking 0 N/A N/A N/A N/A N/A self connectionpool epoll register N/A N/A clientsock fileno N/A select EPOLLIN N/A N/A N/A N/A self connectionpool epollsockets N/A N/A N/A clientsock fileno clientsock N/A N/A N/A event N/A select EPOLLIN N/A N/A success N/A N/A self handle_connection N/A N/A N/A self connectionpool epollsockets N/A fileno N/A N/A success N/A N/A N/A N/A N/A N/A self connectionpool epoll unregister fileno N/A N/A N/A N/A self connectionpool del_connection_by_socket N/A N/A N/A self connectionpool epollsockets N/A fileno N/A N/A N/A N/A N/A N/A self connectionpool epollsockets N/A fileno close N/A N/A N/A N/A self connectionpool epollsockets N/A fileno N/A N/A N/A event N/A select EPOLLHUP N/A N/A N/A N/A N/A N/A self connectionpool epoll unregister fileno N/A N/A N/A N/A N/A N/A self connectionpool epollsockets N/A fileno close N/A N/A N/A N/A self connectionpool epollsockets N/A fileno N/A N/A N/A KeyboardInterrupt N/A EOFError N/A N/A N/A N/A os _exit 0 N/A N/A N/A N/A N/A self connectionpool epoll unregister N/A N/A N/A self socket fileno N/A N/A N/A N/A N/A self connectionpool epoll close N/A use_select N/A N/A self N/A N/A N/A N/A self alive N/A N/A N/A N/A N/A inputready outputready exceptready N/A N/A select select N/A N/A self connectionpool activesockets N/A N/A N/A self connectionpool activesockets 1 N/A s exceptready N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write Exception N/A %s s N/A s inputready N/A N/A N/A s N/A self socket N/A N/A N/A clientsock clientaddr N/A N/A N/A self socket accept N/A N/A self debug N/A N/A N/A N/A N/A self logger write State N/A accepted a connection from address %s N/A str clientaddr N/A N/A N/A N/A N/A self connectionpool activesockets add clientsock N/A N/A N/A N/A N/A self connectionpool nascentsockets add clientsock N/A success True N/A N/A success N/A N/A self handle_connection s N/A N/A success N/A N/A N/A N/A N/A self connectionpool del_connection_by_socket s N/A N/A N/A KeyboardInterrupt N/A EOFError N/A N/A N/A N/A os _exit 0 N/A handle_connection N/A N/A self clientsock N/A N/A N/A Receives a message and calls the corresponding message handler N/A connection N/A N/A N/A self connectionpool get_connection_by_socket clientsock N/A N/A N/A message N/A N/A connection received_bytes N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State N/A received %s N/A str message N/A N/A N/A message type MSG_STATUS N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State N/A Answering status message %s N/A N/A self __str__ N/A messagestr N/A N/A pickle dumps N/A N/A self __str__ N/A message N/A N/A N/A struct pack I N/A len messagestr messagestr N/A N/A N/A clientsock send message N/A False N/A N/A N/A N/A message source type NODE_CLIENT N/A N/A N/A N/A self nodeliveness N/A N/A message source N/A N/A time time N/A N/A N/A message source N/A self replicas N/A N/A N/A N/A self replicas N/A N/A message source 0 N/A N/A N/A N/A self receivedmessages append N/A message connection N/A N/A N/A N/A self receivedmessages_semaphore release N/A N/A N/A N/A message type MSG_CLIENTREQUEST N/A N/A message type MSG_INCCLIENTREQUEST N/A N/A N/A N/A N/A self connectionpool add_connection_to_peer N/A message source connection N/A N/A N/A N/A message type N/A MSG_HELO MSG_HELOREPLY MSG_UPDATE N/A N/A N/A N/A N/A self connectionpool add_connection_to_peer N/A message source connection N/A True N/A N/A N/A ConnectionError N/A e N/A N/A False N/A handle_messages N/A N/A self N/A N/A N/A True N/A N/A N/A N/A N/A self receivedmessages_semaphore acquire N/A N/A message_to_process connection N/A N/A N/A self receivedmessages pop 0 N/A N/A N/A message_to_process type MSG_CLIENTREQUEST N/A N/A N/A message_to_process clientbatch N/A N/A N/A N/A self process_message message_to_process connection N/A N/A msgconns N/A N/A message_to_process connection N/A N/A m c N/A self receivedmessages N/A N/A N/A N/A m type MSG_CLIENTREQUEST N/A N/A N/A N/A N/A self receivedmessages_semaphore acquire N/A N/A N/A N/A self receivedmessages remove N/A m c N/A N/A N/A msgconns append N/A m c N/A N/A N/A len msgconns 1 N/A N/A N/A N/A self process_messagelist msgconns N/A N/A N/A N/A self process_message message_to_process connection N/A N/A N/A N/A self process_message message_to_process connection N/A N/A process_messagelist N/A N/A self msgconnlist N/A N/A N/A Processes given message connection pairs N/A N/A self lock N/A N/A N/A N/A self msg_clientrequest_batch msgconnlist N/A True N/A process_message N/A N/A self message connection N/A N/A N/A Processes given message connection pair N/A mname N/A msg_%s N/A N/A N/A msg_names N/A N/A message type lower N/A N/A N/A method N/A getattr self mname N/A N/A self debug N/A N/A N/A N/A N/A self logger write State N/A invoking method: %s mname N/A N/A N/A AttributeError N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write Method Error N/A method not supported: %s mname N/A False N/A N/A self lock N/A N/A N/A method connection message N/A True N/A msg_helo N/A N/A self conn msg N/A N/A N/A N/A msg_heloreply N/A N/A self conn msg N/A N/A N/A N/A msg leader N/A N/A N/A N/A msg leader N/A self me N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State I'm the leader. N/A N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State Adding new bootstrap. N/A N/A N/A msg source N/A self bootstrapset N/A N/A N/A N/A N/A self bootstrapset remove N/A msg source N/A N/A N/A N/A self bootstrapset add N/A msg leader N/A N/A N/A self connecttobootstrap N/A msg_ping N/A N/A self conn msg N/A N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State Replying to PING. N/A pingreplymessage N/A create_message MSG_PINGREPLY N/A self me N/A N/A N/A conn send pingreplymessage N/A msg_pingreply N/A N/A self conn msg N/A N/A N/A N/A cmd_help N/A N/A self args N/A N/A N/A prints the commands that are supported
        by the corresponding Node. N/A Commands supported: N/A attr N/A dir self N/A N/A N/A N/A attr startswith cmd_ N/A N/A N/A N/A attr replace cmd_ N/A cmd_exit N/A N/A self args N/A N/A N/A Changes the liveness state and dies N/A N/A self alive False N/A N/A N/A os _exit 0 N/A cmd_state N/A N/A self args N/A N/A N/A prints connectivity state of the corresponding Node. N/A N/A 
%s
 N/A N/A self statestr N/A get_user_input_from_shell N/A N/A self N/A N/A N/A Shell loop that accepts inputs from the command prompt and
        calls corresponding command handlers. N/A N/A self alive N/A N/A N/A N/A input N/A raw_input > N/A N/A N/A len input 0 N/A N/A N/A N/A input N/A N/A input split N/A mname N/A cmd_%s N/A N/A N/A input N/A 0 lower N/A N/A N/A method N/A getattr self mname N/A N/A N/A AttributeError N/A e N/A N/A Command not supported:  N/A str e N/A N/A N/A self lock N/A N/A N/A method input N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A os _exit 0 N/A N/A EOFError N/A N/A N/A N/A send N/A N/A self message peer group N/A None None N/A N/A peer N/A N/A connection N/A N/A N/A self connectionpool get_connection_by_peer peer N/A N/A connection None N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write Connection Error N/A Connection for %s cannot be found. N/A str peer N/A -1 N/A N/A N/A connection send message N/A N/A message N/A FLD_ID N/A N/A group N/A N/A ids N/A N/A N/A peer liveness N/A N/A group iteritems N/A N/A connection N/A N/A N/A self connectionpool get_connection_by_peer peer N/A N/A connection None N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write Connection Error N/A Connection for %s cannot be found. N/A str peer N/A N/A N/A N/A connection send message N/A N/A N/A ids append N/A message N/A FLD_ID N/A N/A message N/A FLD_ID N/A assignuniqueid N/A ids N/A terminate_handler N/A N/A self signal frame N/A N/A N/A N/A self debug N/A N/A N/A N/A N/A self logger write State exiting... N/A N/A N/A N/A self logger close N/A N/A N/A N/A sys stdout flush N/A N/A N/A N/A sys stderr flush N/A N/A N/A os _exit 0 N/A _graceexit N/A N/A self exitcode N/A 0 N/A N/A N/A N/A N/A sys stdout flush N/A N/A N/A N/A sys stderr flush N/A N/A hasattr self logger N/A N/A N/A N/A N/A self logger close N/A N/A N/A os _exit exitcode N/A N/A