I've tried doc string testing with doctest, but I find I can do better just using the interactive interpreter.
Do better? With doctest you protect yourself from future bugs. How can you do better just using the interpreter?
Mr. Johnson has already pointed out how to make doctests.
(I don't know why. Impatience I guess. Maybe I just want to see the answer pop up as I type it I guess...)
Using the interpreter for testing and exploring is great IMO but don't throw away your tests!!
Javier
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor