API Reference for Enthought Tool Suite 3.0.1
Decorator to turn a code-block defined as a function into a code-object:
@func2block
def code():
d = a + b
c = a - b
This returns the code piece as a Block.
Decorator to turn a code-block defined as a function into a code-object:
@func2co
def code():
c = a + b
d = a - b
This returns code as a compiled 'anonymous' code object.
Decorator to turn a code-block inside of a function to a string:
@func2str
def code():
c = a + b
d = a - b
This returns a string of code: a = 3\nb = 4\nc = a + b\n
| Local name | Refers to |
|---|---|
| Block | enthought.blocks.block.Block |
| linecache | linecache |
| os | os |
| pdb | pdb |
| re | re |
| sys | sys |
© Copyright 2002-2008 Enthought, Inc.