code – Tools for representing JavaScript code
class bson.code.Code(code, scope=None, \*kwargs*)
Bases:
BSON’s JavaScript code type.
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
Changed in version 3.4: The default value for scope is None
instead of .
property scope