API Reference for Enthought Tool Suite 3.0.1
Utility for generating random code snippets of the form:
a = foo(b) c,z = bar(d,e) ...
It is used for testing in a variety of places.
Generate multiple lines of function call code.
Each function has a random name and a random number of inputs and outputs varying from 1 to 5.
>>> import random >>> random.seed(1000) >>> print random_code_generator(5) z, d, r = mfrflbzmms(r, c, j, m) x, y, z = sceciaw(x, a, x) h = rgqxwhlmhi(u, o) x, j, f, w = nijhtmfwtwygxtk(a, d, q, b, h) m = mkxzybwfiwcdgfisqety(o, p)
| Local name | Refers to |
|---|---|
| doctest | doctest |
| random | random |
© Copyright 2002-2008 Enthought, Inc.