Markov Analysis Help

Terry Reedy tjreedy at udel.edu
Sat May 17 12:13:47 EDT 2008


"dave" <squareswallower at 1ya2hoo3.net> wrote in message 
news:g0mvc2$sic$1 at news.xmission.com...
| bear,
| thanks for the suggestions.  I use IDLE to write the code and when it's
| working I paste it over into a new window.

Or you can just save code you want to keep to a new name.

| To add doctests would I need to use a certain
| filename for the tests to be run on?

You can run a doctest on a file from within the file (as well as from 
without).

if __name__ == '__main__': <run doctest>

I presume the manual gives the details.

|  Can you have doctests on random functions?

???

tjr






More information about the Python-list mailing list