Release 5. Copyright ©1994-1998 by TipTop Software, Inc. All Rights Reserved.
TTObjPyInterp
Inherits From: | TTInterp |
Implements: | TTInterpProtocol |
Declared In: | <ObjPyCore/TTObjPyInterp.h> |
Class Description
This is the ObjPy interpreter class. The main functionality of this class is specified by the TTInterpProtocol protocol.
Method Types
+ getDefaultInterp |
Class Methods
getDefaultInterp
+ getDefaultInterp |
Returns the default (the one and only) Python interpreter object.
Instance Methods
evalFile:
![]() |
Executes python code in file filename.
See also: -evalString:, <TTInterpProtocol>
evalString:
![]() |
Evaluates python code.
See also: -evalString:inModule:interactor:, <TTInterpProtocol>
evalString:inModule:interactor:
![]() |
inModule:(TTPyObject*)module interactor:(id)interactor |
Evaluates python code in specified module.
See also: -evalString:, <TTInterpProtocol>
getModuleName:
![]() |
Returns the Python object corresponding to the module mname. The module is imported if needed. This method raises if such module does not exist.
getVariable:
![]() |
Returns value for Python variable key in the main module. Raises if the variable does not exist.
See also: -getVariable:inModule:, <TTInterpProtocol>
getVariable:inModule:
![]() |
inModule:(TTPyObject*)module |
Returns value for Python variable key in module module.
See also: -getVariable:, <TTInterpProtocol>
setVariable:inModule:toValue:
![]() |
inModule:(TTPyObject*)module toValue:(TTPyObject*)value |
Sets Python variable key to value value in module module.
See also: -setVariable:toValue:, <TTInterpProtocol>
setVariable:toValue:
![]() |
toValue:(TTPyObject*)value |
Sets Python variable key in the main module to value value.
See also: -setVariable:inModule:toValue:, <TTInterpProtocol>
###