Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias alias Assign NameStore Dict Str Str Str Str Str Str Str Num Num Num Num Num Num Num ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr ListLoad Dict NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore Dict Str Num If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad body Raise Call NameLoad Str If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num If NameLoad body AugAssignBitOr AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body AugAssignBitOr AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If BoolOpAnd NameLoad NameLoad body AugAssignBitOr AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If NameLoad body AugAssignBitOr AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If NameLoad body AugAssignBitOr AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIn SubscriptLoad NameLoad Slice Num NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr ListLoad Dict If BoolOpOr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign NameStore Dict Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore BoolOpOr BoolOpAnd NameLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Str If CompareNotIn NameLoad NameLoad body Return NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpOr UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Return NameLoad If CompareNotIn Str NameLoad body Assign NameStore Call NameLoad ListLoad TupleLoad Str NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr BoolOpOr CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Str body Return Call NameLoad Dict Str AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignBitOr NameStore SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr AttributeLoad NameLoad attr CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr If BinOpBitAnd NameLoad SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr NameLoad If BinOpBitAnd NameLoad SubscriptLoad NameLoad Index Str body If AttributeLoad NameLoad attr body Raise Call NameLoad Str If AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad AugAssignBitOr AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr If BinOpBitAnd NameLoad SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr NameLoad If BinOpBitAnd NameLoad SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr NameLoad AugAssignBitAnd AttributeStore NameLoad attr UnaryOpInvert NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareLt NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr BoolOpAnd CompareEq NameLoad Num Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareLt NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Num If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareLt AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpSub AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num For NameStore NameLoad body Return NameLoad Raise Call NameLoad Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If NameLoad body If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad If CompareEq Call AttributeLoad NameLoad attr Str Str Str body Return Num Return Call NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return SubscriptLoad Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr UnaryOpUSub Call NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If NameLoad body Assign NameStore Dict Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr TupleStore NameStore NameStore NameStore NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Raise orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad If BinOpBitAnd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Return Raise ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Raise Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot BinOpBitAnd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assert CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareLtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BoolOpOr Call NameLoad AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr orelse Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign TupleStore NameStore NameStore NameStore TupleLoad ListLoad NameLoad Call NameLoad NameLoad orelse Assign TupleStore NameStore NameStore NameStore TupleLoad Dict NameLoad Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body If BoolOpAnd Call NameLoad NameLoad TupleLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A Cursor class to iterate over Mongo query results. N/A copy collections deque bson RE_TYPE bson.code Code bson.son SON pymongo helpers message read_preferences pymongo.read_preferences ReadPreference secondary_ok_commands pymongo.errors AutoReconnect CursorNotFound InvalidOperation N/A _QUERY_OPTIONS N/A tailable_cursor slave_okay oplog_replay no_timeout await_data exhaust partial 2 4 8 16 32 64 128 _SocketManager N/A N/A N/A Used with exhaust cursors to ensure the socket is returned.
     __init__ N/A N/A self sock pool N/A N/A N/A N/A self sock sock N/A N/A self pool pool N/A N/A self __closed False N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A close N/A N/A self N/A N/A N/A Return this instance's socket to the connection pool.
         N/A N/A N/A self __closed N/A N/A N/A self __closed True N/A N/A N/A N/A self pool maybe_return_socket N/A self sock N/A N/A N/A self sock N/A self pool N/A None None N/A N/A Cursor N/A object N/A N/A A cursor / iterator over Mongo query results.
     __init__ N/A N/A self collection spec fields skip limit timeout snapshot tailable sort max_scan as_class slave_okay await_data partial manipulate read_preference tag_sets secondary_acceptable_latency_ms exhaust compile_re _must_use_master _uuid_subtype N/A None None 0 0 True False False None None None False False False True N/A ReadPreference PRIMARY N/A N/A None False True False None kwargs N/A N/A Create a new cursor.

        Should not be called directly by application developers - see
        :meth:`~pymongo.collection.Collection.find` instead.

        .. mongodoc:: cursors
         N/A N/A self __id None N/A N/A spec None N/A N/A spec N/A N/A N/A N/A isinstance spec dict N/A N/A N/A TypeError spec must be an instance of dict N/A N/A N/A isinstance skip int N/A N/A N/A TypeError skip must be an instance of int N/A N/A N/A isinstance limit int N/A N/A N/A TypeError limit must be an instance of int N/A N/A N/A isinstance timeout bool N/A N/A N/A TypeError timeout must be an instance of bool N/A N/A N/A isinstance snapshot bool N/A N/A N/A TypeError snapshot must be an instance of bool N/A N/A N/A isinstance tailable bool N/A N/A N/A TypeError tailable must be an instance of bool N/A N/A N/A isinstance slave_okay bool N/A N/A N/A TypeError slave_okay must be an instance of bool N/A N/A N/A isinstance await_data bool N/A N/A N/A TypeError await_data must be an instance of bool N/A N/A N/A isinstance partial bool N/A N/A N/A TypeError partial must be an instance of bool N/A N/A N/A isinstance exhaust bool N/A N/A N/A TypeError exhaust must be an instance of bool N/A N/A fields None N/A N/A N/A fields N/A N/A fields N/A _id 1 N/A N/A N/A isinstance fields dict N/A N/A fields N/A N/A helpers _fields_list_to_dict fields N/A N/A as_class None N/A N/A as_class N/A N/A N/A collection database connection document_class N/A N/A self __collection collection N/A N/A self __spec spec N/A N/A self __fields fields N/A N/A self __skip skip N/A N/A self __limit limit N/A N/A self __max_time_ms None N/A N/A self __batch_size 0 N/A N/A self __max None N/A N/A self __min None N/A N/A N/A N/A N/A N/A self __collection database connection is_mongos exhaust N/A N/A N/A InvalidOperation Exhaust cursors are not supported by mongos N/A N/A limit exhaust N/A N/A N/A InvalidOperation Can't use limit and exhaust together. N/A N/A self __exhaust exhaust N/A N/A self __exhaust_mgr None N/A N/A self __empty False N/A N/A self __snapshot snapshot N/A N/A self __ordering N/A N/A sort N/A N/A helpers _index_document sort None N/A N/A self __max_scan max_scan N/A N/A self __explain False N/A N/A self __hint None N/A N/A self __comment None N/A N/A self __as_class as_class N/A N/A self __slave_okay slave_okay N/A N/A self __manipulate manipulate N/A N/A self __read_preference read_preference N/A N/A self __tag_sets tag_sets N/A N/A self __secondary_acceptable_latency_ms secondary_acceptable_latency_ms N/A N/A self __tz_aware N/A N/A N/A collection database connection tz_aware N/A N/A self __compile_re compile_re N/A N/A self __must_use_master _must_use_master N/A N/A self __uuid_subtype N/A _uuid_subtype N/A collection uuid_subtype N/A N/A self __data N/A deque N/A N/A self __connection_id None N/A N/A self __retrieved 0 N/A N/A self __killed False N/A N/A self __query_flags 0 N/A tailable N/A N/A N/A self __query_flags N/A _QUERY_OPTIONS N/A tailable_cursor N/A N/A timeout N/A N/A N/A self __query_flags N/A _QUERY_OPTIONS N/A no_timeout N/A N/A tailable await_data N/A N/A N/A self __query_flags N/A _QUERY_OPTIONS N/A await_data N/A exhaust N/A N/A N/A self __query_flags N/A _QUERY_OPTIONS N/A exhaust N/A partial N/A N/A N/A self __query_flags N/A _QUERY_OPTIONS N/A partial N/A N/A self __kwargs kwargs N/A collection N/A N/A self N/A N/A N/A The :class:`~pymongo.collection.Collection` that this
        :class:`Cursor` is iterating.

        .. versionadded:: 1.1
         N/A N/A self __collection N/A property conn_id N/A N/A self N/A N/A N/A The server/client/pool this cursor lives on.

        Could be (host, port), -1, or None depending on what
        client class executed the initial query or this cursor
        being advanced at all.
         N/A N/A self __connection_id N/A property retrieved N/A N/A self N/A N/A N/A The number of documents retrieved so far.
         N/A N/A self __retrieved N/A property __del__ N/A N/A self N/A N/A N/A N/A N/A self __id N/A N/A self __killed N/A N/A N/A N/A self __die N/A rewind N/A N/A self N/A N/A N/A Rewind this cursor to its unevaluated state.

        Reset this cursor if it has been partially or completely evaluated.
        Any options that are present on the cursor will remain in effect.
        Future iterating performed on this cursor will cause new queries to
        be sent to the server, even if the resultant data has already been
        retrieved by this cursor.
         N/A N/A self __data N/A deque N/A N/A self __id None N/A N/A self __connection_id None N/A N/A self __retrieved 0 N/A N/A self __killed False N/A self N/A clone N/A N/A self N/A N/A N/A Get a clone of this cursor.

        Returns a new Cursor instance with options matching those that have
        been set on the current instance. The clone will be completely
        unevaluated, even if the current instance has been partially or
        completely evaluated.
         N/A N/A N/A self _clone True N/A _clone N/A N/A self deepcopy N/A True N/A N/A clone N/A N/A self _clone_base N/A values_to_clone N/A spec fields skip limit max_time_ms comment max min snapshot ordering explain hint batch_size max_scan as_class slave_okay manipulate read_preference tag_sets secondary_acceptable_latency_ms must_use_master uuid_subtype compile_re query_flags kwargs N/A data N/A dict N/A N/A k v N/A N/A k v N/A N/A N/A self __dict__ iteritems N/A N/A N/A k startswith _Cursor__ N/A N/A k N/A 9 values_to_clone N/A deepcopy N/A N/A data N/A N/A self _deepcopy data N/A N/A N/A N/A clone __dict__ update data N/A clone N/A _clone_base N/A N/A self N/A N/A N/A Creates an empty Cursor object for information to be copied into.
         N/A N/A Cursor N/A self __collection N/A __die N/A N/A self N/A N/A N/A Closes this cursor.
         N/A N/A N/A self __id N/A N/A self __killed N/A N/A N/A N/A self __exhaust N/A self __exhaust_mgr N/A N/A N/A N/A N/A N/A self __exhaust_mgr sock close N/A N/A connection N/A N/A N/A self __collection database connection N/A N/A N/A self __connection_id None N/A N/A N/A N/A connection close_cursor N/A self __id N/A self __connection_id N/A N/A N/A N/A connection close_cursor N/A self __id N/A N/A N/A self __exhaust N/A self __exhaust_mgr N/A N/A N/A N/A N/A self __exhaust_mgr close N/A N/A self __killed True N/A close N/A N/A self N/A N/A N/A Explicitly close / kill this cursor. Required for PyPy, Jython and
        other Python implementations that don't use reference counting
        garbage collection.
         N/A N/A N/A self __die N/A __query_spec N/A N/A self N/A N/A N/A Get the spec to use for a query.
         N/A operators N/A N/A N/A self __ordering N/A N/A N/A operators N/A $orderby N/A self __ordering N/A N/A self __explain N/A N/A N/A operators N/A $explain True N/A N/A self __hint N/A N/A N/A operators N/A $hint N/A self __hint N/A N/A self __comment N/A N/A N/A operators N/A $comment N/A self __comment N/A N/A self __snapshot N/A N/A N/A operators N/A $snapshot True N/A N/A self __max_scan N/A N/A N/A operators N/A $maxScan N/A self __max_scan N/A N/A N/A self __max_time_ms None N/A N/A N/A operators N/A $maxTimeMS N/A self __max_time_ms N/A N/A self __max N/A N/A N/A operators N/A $max N/A self __max N/A N/A self __min N/A N/A N/A operators N/A $min N/A self __min N/A N/A N/A N/A N/A N/A self __collection database connection is_mongos N/A N/A self __read_preference N/A ReadPreference PRIMARY N/A N/A has_tags N/A N/A self __tag_sets N/A N/A self __tag_sets N/A N/A N/A N/A N/A N/A self __read_preference N/A ReadPreference SECONDARY_PREFERRED has_tags N/A N/A read_pref N/A mode N/A N/A read_preferences mongos_mode N/A self __read_preference N/A has_tags N/A N/A N/A read_pref N/A tags N/A self __tag_sets N/A N/A operators N/A $readPreference read_pref N/A operators N/A N/A spec N/A N/A N/A self __spec copy N/A N/A N/A N/A self collection name $cmd N/A N/A command_name N/A N/A spec N/A N/A N/A N/A N/A spec keys N/A 0 lower N/A N/A command_name secondary_ok_commands N/A N/A spec N/A N/A N/A command_name mapreduce N/A N/A out N/A N/A spec get out N/A N/A N/A N/A isinstance out dict N/A N/A N/A out get inline N/A N/A spec N/A N/A $query spec N/A N/A spec N/A SON N/A N/A $query spec N/A N/A N/A isinstance spec SON N/A N/A spec N/A SON spec N/A N/A N/A spec update operators N/A spec N/A N/A N/A N/A query N/A self __spec N/A N/A N/A len N/A self __spec 1 N/A N/A N/A N/A N/A self __spec keys N/A 0 query N/A N/A N/A SON N/A $query N/A self __spec N/A N/A self __spec N/A __query_options N/A N/A self N/A N/A N/A Get the query options string to use for this query.
         N/A options N/A self __query_flags N/A N/A N/A self __slave_okay N/A N/A self __read_preference N/A ReadPreference PRIMARY N/A N/A options N/A _QUERY_OPTIONS N/A slave_okay N/A options N/A __check_okay_to_chain N/A N/A self N/A N/A N/A Check if it is okay to chain more options onto this cursor.
         N/A N/A N/A self __retrieved N/A N/A self __id None N/A N/A N/A InvalidOperation cannot set options after executing query N/A add_option N/A N/A self mask N/A N/A N/A Set arbitrary query flags using a bitmask.

        To set the tailable flag:
        cursor.add_option(2)
         N/A N/A N/A isinstance mask int N/A N/A N/A TypeError mask must be an int N/A N/A N/A self __check_okay_to_chain N/A N/A mask N/A _QUERY_OPTIONS N/A slave_okay N/A N/A N/A self __slave_okay True N/A N/A mask N/A _QUERY_OPTIONS N/A exhaust N/A N/A N/A self __limit N/A N/A N/A InvalidOperation Can't use limit and exhaust together. N/A N/A N/A N/A N/A self __collection database connection is_mongos N/A N/A N/A InvalidOperation Exhaust cursors are not supported by mongos N/A N/A self __exhaust True N/A N/A self __query_flags mask N/A self N/A remove_option N/A N/A self mask N/A N/A N/A Unset arbitrary query flags using a bitmask.

        To unset the tailable flag:
        cursor.remove_option(2)
         N/A N/A N/A isinstance mask int N/A N/A N/A TypeError mask must be an int N/A N/A N/A self __check_okay_to_chain N/A N/A mask N/A _QUERY_OPTIONS N/A slave_okay N/A N/A N/A self __slave_okay False N/A N/A mask N/A _QUERY_OPTIONS N/A exhaust N/A N/A N/A self __exhaust False N/A N/A self __query_flags N/A mask N/A self N/A limit N/A N/A self limit N/A N/A N/A Limits the number of results to be returned by this cursor.

        Raises :exc:`TypeError` if `limit` is not an integer. Raises
        :exc:`~pymongo.errors.InvalidOperation` if this :class:`Cursor`
        has already been used. The last `limit` applied to this cursor
        takes precedence. A limit of ``0`` is equivalent to no limit.

        :Parameters:
          - `limit`: the number of results to return

        .. mongodoc:: limit
         N/A N/A N/A isinstance limit N/A int long N/A N/A N/A TypeError limit must be an integer N/A N/A self __exhaust N/A N/A N/A InvalidOperation Can't use limit and exhaust together. N/A N/A N/A self __check_okay_to_chain N/A N/A self __empty False N/A N/A self __limit limit N/A self N/A batch_size N/A N/A self batch_size N/A N/A N/A Limits the number of documents returned in one batch. Each batch
        requires a round trip to the server. It can be adjusted to optimize
        performance and limit data transfer.

        .. note:: batch_size can not override MongoDB's internal limits on the
           amount of data it will return to the client in a single batch (i.e
           if you set batch size to 1,000,000,000, MongoDB will currently only
           return 4-16MB of results per batch).

        Raises :exc:`TypeError` if `batch_size` is not an integer.
        Raises :exc:`ValueError` if `batch_size` is less than ``0``.
        Raises :exc:`~pymongo.errors.InvalidOperation` if this
        :class:`Cursor` has already been used. The last `batch_size`
        applied to this cursor takes precedence.

        :Parameters:
          - `batch_size`: The size of each batch of results requested.

        .. versionadded:: 1.9
         N/A N/A N/A isinstance batch_size N/A int long N/A N/A N/A TypeError batch_size must be an integer N/A N/A batch_size 0 N/A N/A N/A ValueError batch_size must be >= 0 N/A N/A N/A self __check_okay_to_chain N/A N/A self __batch_size N/A N/A N/A batch_size 1 2 batch_size N/A self N/A skip N/A N/A self skip N/A N/A N/A Skips the first `skip` results of this cursor.

        Raises :exc:`TypeError` if `skip` is not an integer. Raises
        :exc:`ValueError` if `skip` is less than ``0``. Raises
        :exc:`~pymongo.errors.InvalidOperation` if this :class:`Cursor` has
        already been used. The last `skip` applied to this cursor takes
        precedence.

        :Parameters:
          - `skip`: the number of results to skip
         N/A N/A N/A isinstance skip N/A int long N/A N/A N/A TypeError skip must be an integer N/A N/A skip 0 N/A N/A N/A ValueError skip must be >= 0 N/A N/A N/A self __check_okay_to_chain N/A N/A self __skip skip N/A self N/A max_time_ms N/A N/A self max_time_ms N/A N/A N/A Specifies a time limit for a query operation. If the specified
        time is exceeded, the operation will be aborted and
        :exc:`~pymongo.errors.ExecutionTimeout` is raised. If `max_time_ms`
        is ``None`` no limit is applied.

        Raises :exc:`TypeError` if `max_time_ms` is not an integer or ``None``.
        Raises :exc:`~pymongo.errors.InvalidOperation` if this :class:`Cursor`
        has already been used.

        :Parameters:
          - `max_time_ms`: the time limit after which the operation is aborted
         N/A N/A N/A N/A isinstance max_time_ms N/A int long N/A max_time_ms None N/A N/A N/A TypeError max_time_ms must be an integer or None N/A N/A N/A self __check_okay_to_chain N/A N/A self __max_time_ms max_time_ms N/A self N/A __getitem__ N/A N/A self index N/A N/A N/A Get a single document or a slice of documents from this cursor.

        Raises :class:`~pymongo.errors.InvalidOperation` if this
        cursor has already been used.

        To get a single document use an integral index, e.g.::

          >>> db.test.find()[50]

        An :class:`IndexError` will be raised if the index is negative
        or greater than the amount of documents in this cursor. Any
        limit previously applied to this cursor will be ignored.

        To get a slice of documents use a slice index, e.g.::

          >>> db.test.find()[20:25]

        This will return this cursor with a limit of ``5`` and skip of
        ``20`` applied.  Using a slice index will override any prior
        limits or skips applied to this cursor (including those
        applied through previous calls to this method). Raises
        :class:`IndexError` when the slice has a step, a negative
        start value, or a stop value less than or equal to the start
        value.

        :Parameters:
          - `index`: An integer or slice index to be applied to this cursor
         N/A N/A N/A self __check_okay_to_chain N/A N/A self __empty False N/A N/A isinstance index slice N/A N/A N/A N/A index step None N/A N/A N/A IndexError Cursor instances do not support slice steps N/A skip 0 N/A N/A N/A index start None N/A N/A N/A N/A index start 0 N/A N/A N/A IndexError Cursor instances do not supportnegative indices N/A skip N/A index start N/A N/A N/A index stop None N/A N/A limit N/A N/A index stop skip N/A N/A limit 0 N/A N/A N/A IndexError N/A stop index must be greater than startindex for slice %r index N/A N/A limit 0 N/A N/A N/A self __empty True N/A N/A limit 0 N/A N/A self __skip skip N/A N/A self __limit limit N/A self N/A N/A isinstance index N/A int long N/A N/A N/A index 0 N/A N/A N/A IndexError Cursor instances do not support negativeindices N/A clone N/A N/A self clone N/A N/A N/A clone skip N/A index N/A self __skip N/A N/A N/A clone limit -1 N/A doc clone N/A N/A doc N/A N/A IndexError no such item for Cursor instance N/A N/A TypeError N/A index %r cannot be applied to Cursor instances index N/A max_scan N/A N/A self max_scan N/A N/A N/A Limit the number of documents to scan when performing the query.

        Raises :class:`~pymongo.errors.InvalidOperation` if this
        cursor has already been used. Only the last :meth:`max_scan`
        applied to this cursor has any effect.

        :Parameters:
          - `max_scan`: the maximum number of documents to scan

        .. note:: Requires server version **>= 1.5.1**

        .. versionadded:: 1.7
         N/A N/A N/A self __check_okay_to_chain N/A N/A self __max_scan max_scan N/A self N/A max N/A N/A self spec N/A N/A N/A Adds `max` operator that specifies upper bound for specific index.

        :Parameters:
          - `spec`: a list of field, limit pairs specifying the exclusive
            upper bound for all keys of a specific index in order.

        .. versionadded:: 2.7
         N/A N/A N/A isinstance spec N/A list tuple N/A N/A N/A TypeError spec must be an instance of list or tuple N/A N/A N/A self __check_okay_to_chain N/A N/A self __max N/A SON spec N/A self N/A min N/A N/A self spec N/A N/A N/A Adds `min` operator that specifies lower bound for specific index.

        :Parameters:
          - `spec`: a list of field, limit pairs specifying the inclusive
            lower bound for all keys of a specific index in order.

        .. versionadded:: 2.7
         N/A N/A N/A isinstance spec N/A list tuple N/A N/A N/A TypeError spec must be an instance of list or tuple N/A N/A N/A self __check_okay_to_chain N/A N/A self __min N/A SON spec N/A self N/A sort N/A N/A self key_or_list direction N/A None N/A N/A Sorts this cursor's results.

        Takes either a single key and a direction, or a list of (key,
        direction) pairs. The key(s) must be an instance of ``(str,
        unicode)``, and the direction(s) must be one of
        (:data:`~pymongo.ASCENDING`,
        :data:`~pymongo.DESCENDING`). Raises
        :class:`~pymongo.errors.InvalidOperation` if this cursor has
        already been used. Only the last :meth:`sort` applied to this
        cursor has any effect.

        :Parameters:
          - `key_or_list`: a single key or a list of (key, direction)
            pairs specifying the keys to sort on
          - `direction` (optional): only used if `key_or_list` is a single
            key, if not given :data:`~pymongo.ASCENDING` is assumed
         N/A N/A N/A self __check_okay_to_chain N/A keys N/A N/A helpers _index_list key_or_list direction N/A N/A self __ordering N/A N/A helpers _index_document keys N/A self N/A count N/A N/A self with_limit_and_skip N/A False N/A N/A Get the size of the results set for this query.

        Returns the number of documents in the results set for this query. Does
        not take :meth:`limit` and :meth:`skip` into account by default - set
        `with_limit_and_skip` to ``True`` if that is the desired behavior.
        Raises :class:`~pymongo.errors.OperationFailure` on a database error.

        With :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`
        or :class:`~pymongo.master_slave_connection.MasterSlaveConnection`,
        if `read_preference` is not
        :attr:`pymongo.read_preferences.ReadPreference.PRIMARY` or
        :attr:`pymongo.read_preferences.ReadPreference.PRIMARY_PREFERRED`, or
        (deprecated) `slave_okay` is `True`, the count command will be sent to
        a secondary or slave.

        :Parameters:
          - `with_limit_and_skip` (optional): take any :meth:`limit` or
            :meth:`skip` that has been applied to this cursor into account when
            getting the count

        .. note:: The `with_limit_and_skip` parameter requires server
           version **>= 1.1.4-**

        .. note:: ``count`` ignores ``network_timeout``. For example, the
          timeout is ignored in the following code::

            collection.find({}, network_timeout=1).count()

        .. versionadded:: 1.1.1
           The `with_limit_and_skip` parameter.
           :meth:`~pymongo.cursor.Cursor.__len__` was deprecated in favor of
           calling :meth:`count` with `with_limit_and_skip` set to ``True``.
         N/A N/A N/A isinstance with_limit_and_skip bool N/A N/A N/A TypeError with_limit_and_skip must be an instance of bool N/A command N/A query fields N/A self __spec N/A self __fields N/A N/A command N/A read_preference N/A self __read_preference N/A N/A command N/A tag_sets N/A self __tag_sets N/A N/A command N/A secondary_acceptable_latency_ms N/A self __secondary_acceptable_latency_ms N/A N/A command N/A slave_okay N/A self __slave_okay N/A use_master N/A N/A N/A self __slave_okay N/A N/A self __read_preference N/A N/A command N/A _use_master use_master N/A N/A N/A self __max_time_ms None N/A N/A N/A command N/A maxTimeMS N/A self __max_time_ms N/A N/A self __comment N/A N/A N/A command N/A $comment N/A self __comment N/A with_limit_and_skip N/A N/A N/A self __limit N/A N/A N/A command N/A limit N/A self __limit N/A N/A self __skip N/A N/A N/A command N/A skip N/A self __skip N/A database N/A N/A self __collection database N/A r N/A N/A database command count N/A N/A self __collection name allowable_errors N/A ns missing uuid_subtype N/A self __uuid_subtype compile_re N/A self __compile_re command N/A N/A N/A N/A r get errmsg ns missing N/A N/A 0 N/A N/A int N/A r N/A n N/A distinct N/A N/A self key N/A N/A N/A Get a list of distinct values for `key` among all documents
        in the result set of this query.

        Raises :class:`TypeError` if `key` is not an instance of
        :class:`basestring` (:class:`str` in python 3).

        With :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`
        or :class:`~pymongo.master_slave_connection.MasterSlaveConnection`,
        if `read_preference` is
        not :attr:`pymongo.read_preferences.ReadPreference.PRIMARY` or
        (deprecated) `slave_okay` is `True` the distinct command will be sent
        to a secondary or slave.

        :Parameters:
          - `key`: name of key for which we want to get the distinct values

        .. note:: Requires server version **>= 1.1.3+**

        .. seealso:: :meth:`pymongo.collection.Collection.distinct`

        .. versionadded:: 1.2
         N/A N/A N/A isinstance key basestring N/A N/A N/A TypeError N/A key must be an instance of %s N/A N/A basestring __name__ N/A options N/A key key N/A N/A self __spec N/A N/A N/A options N/A query N/A self __spec N/A N/A options N/A read_preference N/A self __read_preference N/A N/A options N/A tag_sets N/A self __tag_sets N/A N/A options N/A secondary_acceptable_latency_ms N/A self __secondary_acceptable_latency_ms N/A N/A options N/A slave_okay N/A self __slave_okay N/A use_master N/A N/A N/A self __slave_okay N/A N/A self __read_preference N/A N/A options N/A _use_master use_master N/A N/A N/A self __max_time_ms None N/A N/A N/A options N/A maxTimeMS N/A self __max_time_ms N/A N/A self __comment N/A N/A N/A options N/A $comment N/A self __comment N/A database N/A N/A self __collection database N/A N/A N/A N/A database command distinct N/A N/A self __collection name uuid_subtype N/A self __uuid_subtype compile_re N/A self __compile_re options N/A values N/A explain N/A N/A self N/A N/A N/A Returns an explain plan record for this cursor.

        .. mongodoc:: explain
         N/A c N/A N/A self clone N/A N/A c __explain True N/A N/A c __limit N/A N/A N/A c __limit N/A N/A abs N/A c __limit N/A N/A N/A c next N/A hint N/A N/A self index N/A N/A N/A Adds a 'hint', telling Mongo the proper index to use for the query.

        Judicious use of hints can greatly improve query
        performance. When doing a query on multiple fields (at least
        one of which is indexed) pass the indexed field as a hint to
        the query. Hinting will not do anything if the corresponding
        index does not exist. Raises
        :class:`~pymongo.errors.InvalidOperation` if this cursor has
        already been used.

        `index` should be an index as passed to
        :meth:`~pymongo.collection.Collection.create_index`
        (e.g. ``[('field', ASCENDING)]``). If `index`
        is ``None`` any existing hints for this query are cleared. The
        last hint applied to this cursor takes precedence over all
        others.

        :Parameters:
          - `index`: index to hint on (as an index specifier)
         N/A N/A N/A self __check_okay_to_chain N/A N/A index None N/A N/A N/A self __hint None N/A self N/A N/A self __hint N/A N/A helpers _index_document index N/A self N/A comment N/A N/A self comment N/A N/A N/A Adds a 'comment' to the cursor.

        http://docs.mongodb.org/manual/reference/operator/comment/

        :Parameters:
          - `comment`: A string or document

        .. versionadded:: 2.7
         N/A N/A N/A self __check_okay_to_chain N/A N/A self __comment comment N/A self N/A where N/A N/A self code N/A N/A N/A Adds a $where clause to this query.

        The `code` argument must be an instance of :class:`basestring`
        (:class:`str` in python 3) or :class:`~bson.code.Code`
        containing a JavaScript expression. This expression will be
        evaluated for each document scanned. Only those documents
        for which the expression evaluates to *true* will be returned
        as results. The keyword *this* refers to the object currently
        being scanned.

        Raises :class:`TypeError` if `code` is not an instance of
        :class:`basestring` (:class:`str` in python 3). Raises
        :class:`~pymongo.errors.InvalidOperation` if this
        :class:`Cursor` has already been used. Only the last call to
        :meth:`where` applied to a :class:`Cursor` has any effect.

        :Parameters:
          - `code`: JavaScript expression to use as a filter
         N/A N/A N/A self __check_okay_to_chain N/A N/A N/A isinstance code Code N/A N/A code N/A Code code N/A N/A N/A self __spec N/A $where code N/A self N/A __send_message N/A N/A self message N/A N/A N/A Send a query or getmore message and handles the response.

        If message is ``None`` this is an exhaust cursor, which reads
        the next result batch off the exhaust socket instead of
        sending getMore messages to the server.
         N/A client N/A N/A N/A self __collection database connection N/A message N/A N/A kwargs N/A _must_use_master N/A self __must_use_master N/A N/A kwargs N/A read_preference N/A self __read_preference N/A N/A kwargs N/A tag_sets N/A self __tag_sets N/A N/A kwargs N/A secondary_acceptable_latency_ms N/A self __secondary_acceptable_latency_ms N/A N/A kwargs N/A exhaust N/A self __exhaust N/A N/A N/A self __connection_id None N/A N/A N/A kwargs N/A _connection_to_use N/A self __connection_id N/A N/A N/A kwargs update N/A self __kwargs N/A N/A N/A res N/A N/A client _send_message_with_response message kwargs N/A N/A N/A self __connection_id N/A response sock pool res N/A N/A self __exhaust N/A N/A N/A self __exhaust_mgr N/A _SocketManager sock pool N/A N/A N/A AutoReconnect N/A N/A N/A self __killed True N/A N/A N/A response N/A N/A client _exhaust_next N/A N/A self __exhaust_mgr sock N/A N/A N/A response N/A N/A helpers _unpack_response response N/A self __id N/A self __as_class N/A self __tz_aware N/A self __uuid_subtype N/A self __compile_re N/A N/A N/A CursorNotFound N/A N/A N/A self __killed True N/A N/A N/A self __query_flags N/A _QUERY_OPTIONS N/A tailable_cursor N/A N/A N/A N/A N/A AutoReconnect N/A N/A N/A self __killed True N/A N/A N/A client disconnect N/A N/A N/A self __id N/A response N/A cursor_id N/A N/A N/A N/A self __query_flags N/A _QUERY_OPTIONS N/A tailable_cursor N/A N/A N/A N/A response N/A starting_from N/A self __retrieved N/A Result batch started from %s, expected %s N/A N/A response N/A starting_from N/A self __retrieved N/A N/A self __retrieved N/A response N/A number_returned N/A N/A self __data N/A deque N/A response N/A data N/A N/A N/A self __limit N/A self __id N/A N/A self __limit N/A self __retrieved N/A N/A N/A N/A self __die N/A N/A N/A self __exhaust N/A N/A self __id 0 N/A N/A N/A N/A N/A self __exhaust_mgr close N/A _refresh N/A N/A self N/A N/A N/A Refreshes the cursor with more data from Mongo.

        Returns the length of self.__data after refresh. Will exit early if
        self.__data is already non-empty. Raises OperationFailure when the
        cursor cannot be refreshed due to an error on the query.
         N/A N/A N/A len N/A self __data N/A self __killed N/A N/A N/A len N/A self __data N/A N/A N/A self __id None N/A N/A ntoreturn N/A self __batch_size N/A N/A self __limit N/A N/A N/A self __batch_size N/A N/A ntoreturn N/A min N/A self __limit N/A self __batch_size N/A N/A ntoreturn N/A self __limit N/A N/A N/A self __send_message N/A N/A message query N/A N/A self __query_options N/A N/A self __collection full_name N/A self __skip ntoreturn N/A N/A self __query_spec N/A self __fields N/A self __uuid_subtype N/A N/A N/A self __id N/A N/A N/A self __killed True N/A N/A N/A self __id N/A N/A N/A self __limit N/A N/A limit N/A N/A self __limit N/A self __retrieved N/A N/A self __batch_size N/A N/A limit N/A min limit N/A self __batch_size N/A N/A limit N/A self __batch_size N/A N/A self __exhaust N/A N/A N/A N/A self __send_message None N/A N/A N/A N/A self __send_message N/A N/A message get_more N/A N/A self __collection full_name limit N/A self __id N/A N/A N/A self __killed True N/A N/A len N/A self __data N/A alive N/A N/A self N/A N/A N/A Does this cursor have the potential to return more data?

        This is mostly useful with `tailable cursors
        <http://www.mongodb.org/display/DOCS/Tailable+Cursors>`_
        since they will stop iterating even though they *may* return more
        results in the future.

        .. versionadded:: 1.5
         N/A N/A bool N/A N/A len N/A self __data N/A N/A self __killed N/A property cursor_id N/A N/A self N/A N/A N/A Returns the id of the cursor

        Useful if you need to manage cursor ids and want to handle killing
        cursors manually using
        :meth:`~pymongo.mongo_client.MongoClient.kill_cursors`

        .. versionadded:: 2.2
         N/A N/A self __id N/A property __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A N/A self __empty N/A N/A StopIteration N/A db N/A N/A self __collection database N/A N/A N/A len N/A self __data N/A N/A self _refresh N/A N/A N/A self __manipulate N/A N/A N/A N/A db _fix_outgoing N/A N/A N/A self __data popleft N/A self __collection N/A N/A N/A N/A N/A self __data popleft N/A N/A StopIteration N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_val exc_tb N/A N/A N/A N/A N/A self __die N/A __copy__ N/A N/A self N/A N/A N/A Support function for `copy.copy()`.

        .. versionadded:: 2.4
         N/A N/A N/A self _clone deepcopy False N/A __deepcopy__ N/A N/A self memo N/A N/A N/A Support function for `copy.deepcopy()`.

        .. versionadded:: 2.4
         N/A N/A N/A self _clone deepcopy True N/A _deepcopy N/A N/A self x memo N/A None N/A N/A Deepcopy helper for the data dictionary or list.

        Regular expressions cannot be deep copied but as they are immutable we
        don't have to copy them when cloning.
         N/A N/A N/A hasattr x items N/A N/A N/A y is_list iterator N/A N/A True N/A enumerate x N/A N/A N/A y is_list iterator N/A N/A False N/A N/A x iteritems N/A N/A memo None N/A N/A memo N/A N/A val_id N/A id x N/A N/A val_id memo N/A N/A N/A N/A memo get val_id N/A N/A memo N/A val_id y N/A N/A key value iterator N/A N/A N/A N/A isinstance value N/A dict list N/A N/A isinstance value SON N/A N/A value N/A N/A self _deepcopy value memo N/A N/A N/A N/A isinstance value RE_TYPE N/A N/A value N/A N/A copy deepcopy value memo N/A is_list N/A N/A N/A N/A y append value N/A N/A N/A N/A isinstance key RE_TYPE N/A N/A key N/A N/A copy deepcopy key memo N/A N/A y N/A key value N/A y N/A N/A