1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
""" A simple interface for the Python shell. """
# Enthought library imports.
from enthought.traits.api import Interface
class IPythonShell(Interface):
""" A simple interface for the Python shell. """
def bind(self, name, value):
""" Binds a name to a value in the interpreter's namespace.
"""
def execute_command(self, command, hidden=True):
""" Execute a command in the interpreter.
"""
def execute_file(self, path, hidden=True):
""" Execute a file in the interpreter.
"""
def lookup(self, name):
""" Returns the value bound to a name in the interpreter's namespace.
"""
#### EOF ######################################################################
|