Module Expr Str ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Dict If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return CompareEq TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot CompareEq NameLoad NameLoad decorator_list decorator_list
N/A N/A Tools for representing JavaScript code in BSON.
 Code N/A str N/A N/A BSON's JavaScript code type.

    Raises :class:`TypeError` if `code` is not an instance of
    :class:`basestring` (:class:`str` in python 3) or `scope`
    is not ``None`` or an instance of :class:`dict`.

    Scope variables can be set by passing a dictionary as the `scope`
    argument or by using keyword arguments. If a variable is set as a
    keyword argument it will override any setting for that variable in
    the `scope` dictionary.

    :Parameters:
      - `code`: string containing JavaScript code to be evaluated
      - `scope` (optional): dictionary representing the scope in which
        `code` should be evaluated - a mapping from identifiers (as
        strings) to values
      - `**kwargs` (optional): scope variables can also be passed as
        keyword arguments

    .. versionadded:: 1.9
       Ability to pass scope values using keyword arguments.
     N/A _type_marker 13 __new__ N/A N/A cls code scope N/A None kwargs N/A N/A N/A N/A isinstance code basestring N/A N/A N/A TypeError N/A code must be an instance of %s N/A N/A basestring __name__ N/A self N/A N/A str __new__ cls code N/A N/A N/A N/A self __scope N/A code scope N/A N/A N/A AttributeError N/A N/A N/A self __scope N/A N/A N/A scope None N/A N/A N/A N/A isinstance scope dict N/A N/A N/A TypeError scope must be an instance of dict N/A N/A N/A N/A self __scope update scope N/A N/A N/A N/A self __scope update kwargs N/A self N/A scope N/A N/A self N/A N/A N/A Scope dictionary for this instance.
         N/A N/A self __scope N/A property __repr__ N/A N/A self N/A N/A N/A N/A Code(%s, %r) N/A N/A N/A str __repr__ self N/A self __scope N/A __eq__ N/A N/A self other N/A N/A N/A N/A isinstance other Code N/A N/A N/A N/A N/A self __scope N/A str self N/A N/A other __scope N/A str other N/A False N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A self other N/A N/A