code – Tools for representing JavaScript code

Tools for representing JavaScript code in BSON.

class bson.code.Code(code[, scope=None[, **kwargs]])

Bases: str

x.__init__(...) initializes x; see help(type(x)) for signature

scope

Scope dictionary for this instance.

Previous topic

binary – Tools for representing binary data to be stored in MongoDB

Next topic

dbref – Tools for manipulating DBRefs (references to documents stored in MongoDB)

This Page