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:
  (void)evalFile:(NSString*)filename

Executes python code in file filename.

See also:  -evalString:,  <TTInterpProtocol>




evalString:
  (TTPyObject*)evalString:(NSString*)code

Evaluates python code.

See also:  -evalString:inModule:interactor:, <TTInterpProtocol>




evalString:inModule:interactor:
  (TTPyObject*)evalString:(NSString*)code
inModule:(TTPyObject*)module
interactor:(id)interactor

Evaluates python code in specified module.

See also:  -evalString:, <TTInterpProtocol>




getModuleName:
  (TTPyObject*)getModuleName:(NSString*)mname

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:
  (TTPyObject*)getVariable:(NSString*)key

Returns value for Python variable key in the main module.  Raises if the variable does not exist.

See also:  -getVariable:inModule:, <TTInterpProtocol>




getVariable:inModule:
  (TTPyObject*)getVariable:(NSString*)key
inModule:(TTPyObject*)module

Returns value for Python variable key in module module.

See also:  -getVariable:, <TTInterpProtocol>




setVariable:inModule:toValue:
  (void)setVariable:(NSString *)key
inModule:(TTPyObject*)module
toValue:(TTPyObject*)value

Sets Python variable key to value value in module module.

See also:  -setVariable:toValue:, <TTInterpProtocol>




setVariable:toValue:
  (void)setVariable:(NSString*)key
toValue:(TTPyObject*)value

Sets Python variable key in the main module to value value.

See also:  -setVariable:inModule:toValue:, <TTInterpProtocol>




###