< BACKMake Note | BookmarkCONTINUE >
152015024128143245168232148039199167010047123209178152124239215162146127173246035191208004

code

The code module interprets base classes, supporting operations that pertain to Python code objects. In other words, it can simulate the standard interpreter's interactive mode.

The next code opens a new interpreter within your interpreter:

					
>>> import code
>>> interpreter = code.InteractiveConsole()
>>> interpreter.interact()

				


Last updated on 1/30/2002
Python Developer's Handbook, © 2002 Sams Publishing

< BACKMake Note | BookmarkCONTINUE >

Index terms contained in this section

libraries
      Python Services
Python Services

© 2002, O'Reilly & Associates, Inc.