예제 #1
0
def bootScope(paths, recorder):
    """
    "A beginning is the time for taking the most delicate care that the
     balances are correct."
    """
    return finalize({
        u"isList": isList(),
        u"isMap": isMap(),
        u"isSet": isSet(),
        u"Bool": BoolGuard(),
        u"Bytes": BytesGuard(),
        u"Char": CharGuard(),
        u"Double": DoubleGuard(),
        u"Int": IntGuard(),
        u"Str": StrGuard(),
        u"Void": VoidGuard(),

        u"KernelAstStamp": kernelAstStamp,

        u"DeepFrozenStamp": deepFrozenStamp,
        u"TransparentStamp": transparentStamp,

        u"getMonteFile": GetMonteFile(paths, recorder),
        u"typhonEval": TyphonEval(recorder),
    })
예제 #2
0
def safeScope():
    return finalize({
        u"null": NullObject,
        u"Infinity": Infinity,
        u"NaN": NaN,
        u"false": wrapBool(False),
        u"true": wrapBool(True),
        u"Any": anyGuard,
        u"Binding": BindingGuard(),
        u"DeepFrozen": deepFrozenGuard,
        u"Near": nearGuard(),
        u"Same": sameGuardMaker,
        u"Selfless": selfless,
        u"SubrangeGuard": subrangeGuardMaker,
        u"M": MObject(),
        u"Ref": RefOps(),
        u"_auditedBy": auditedBy(),
        u"_equalizer": Equalizer(),
        u"_loop": loop(),
        u"_makeBytes": MakeBytes(),
        u"_makeDouble": MakeDouble(),
        u"_makeFinalSlot": theFinalSlotMaker,
        u"_makeInt": MakeInt(),
        u"_makeList": theMakeList,
        u"_makeMap": theMakeMap,
        u"_makeSourceSpan": makeSourceSpan,
        u"_makeString": MakeString(),
        u"_makeVarSlot": VarSlotMaker(),
        u"_slotToBinding": theSlotBinder,
        u"throw": theThrower,
        u"trace": TraceLn(),
        u"traceln": TraceLn(),
    })
예제 #3
0
def unsafeScope(config):
    return finalize({
        u"Timer": Timer(),
        u"bench": bench(),
        u"currentProcess": CurrentProcess(config),
        u"currentRuntime": CurrentRuntime(),
        u"currentVat": CurrentVatProxy(),
        u"_findTyphonFile": FindTyphonFile(config.libraryPaths),
        u"getAddrInfo": getAddrInfo(),
        u"makeFileResource": makeFileResource(),
        u"makeProcess": makeProcess(),
        u"makeStdErr": makeStdErr(),
        u"makeStdIn": makeStdIn(),
        u"makeStdOut": makeStdOut(),
        u"makeTCP4ClientEndpoint": makeTCP4ClientEndpoint(),
        u"makeTCP4ServerEndpoint": makeTCP4ServerEndpoint(),
        u"unsealException": unsealException(),
    })
예제 #4
0
def unsafeScope(config):
    return finalize({
        u"Timer": Timer(),
        u"bench": bench(),
        u"currentProcess": CurrentProcess(config),
        u"currentRuntime": CurrentRuntime(),
        u"currentVat": CurrentVatProxy(),
        u"_findTyphonFile": FindTyphonFile(config.libraryPaths),
        u"getAddrInfo": getAddrInfo(),
        u"makeFileResource": makeFileResource(),
        u"makeProcess": makeProcess(),
        u"makeStdErr": makeStdErr(),
        u"makeStdIn": makeStdIn(),
        u"makeStdOut": makeStdOut(),
        u"makeTCP4ClientEndpoint": makeTCP4ClientEndpoint(),
        u"makeTCP4ServerEndpoint": makeTCP4ServerEndpoint(),
        u"unsealException": unsealException(),
    })
예제 #5
0
def bootScope(paths, recorder):
    """
    "A beginning is the time for taking the most delicate care that the
     balances are correct."
    """
    return finalize({
        u"isList": isList(),
        u"isMap": isMap(),
        u"isSet": isSet(),
        u"Bool": BoolGuard(),
        u"Bytes": BytesGuard(),
        u"Char": CharGuard(),
        u"Double": DoubleGuard(),
        u"Int": IntGuard(),
        u"Str": StrGuard(),
        u"Void": VoidGuard(),
        u"KernelAstStamp": kernelAstStamp,
        u"DeepFrozenStamp": deepFrozenStamp,
        u"TransparentStamp": transparentStamp,
        u"getMonteFile": GetMonteFile(paths, recorder),
        u"typhonEval": TyphonEval(recorder),
    })
예제 #6
0
def safeScope():
    return finalize({
        u"null": NullObject,
        u"Infinity": Infinity,
        u"NaN": NaN,
        u"false": wrapBool(False),
        u"true": wrapBool(True),

        u"Any": anyGuard,
        u"Binding": BindingGuard(),
        u"DeepFrozen": deepFrozenGuard,
        u"Near": nearGuard(),
        u"Same": sameGuardMaker,
        u"Selfless": selfless,
        u"SubrangeGuard": subrangeGuardMaker,

        u"M": MObject(),
        u"Ref": RefOps(),
        u"_auditedBy": auditedBy(),
        u"_equalizer": Equalizer(),
        u"_loop": loop(),
        u"_makeBytes": MakeBytes(),
        u"_makeDouble": MakeDouble(),
        u"_makeFinalSlot": theFinalSlotMaker,
        u"_makeInt": MakeInt(),
        u"_makeList": theMakeList,
        u"_makeMap": theMakeMap,
        u"_makeSourceSpan": makeSourceSpan,
        u"_makeString": MakeString(),
        u"_makeVarSlot": VarSlotMaker(),
        u"_slotToBinding": theSlotBinder,
        u"throw": theThrower,

        u"trace": TraceLn(),
        u"traceln": TraceLn(),
    })