iPython and doctest

2006-04-12 Thread Michael Tobis
It appears that doctest does not work straightforwardly within iPython. I would like to be able to use doctest within a file conditionally, so that I can develop it within ipython and test it otherwise. It would seem that this would work: Python 2.4.1 (#2, Mar 31 2005, 00:05:10) [GCC 3.3 200303

Re: iPython and doctest

2006-04-12 Thread Robert Kern
Michael Tobis wrote: > It appears that doctest does not work straightforwardly within iPython. > > I would like to be able to use doctest within a file conditionally, so > that I can develop it within ipython and test it otherwise. > > It would seem that this would work: > > Python 2.4.1 (#2, Ma

iPython and doctest

2006-04-12 Thread Michael Tobis
It appears that doctest does not work straightforwardly within iPython. I would like to be able to use doctest within a file conditionally, so that I can develop it within ipython and test it otherwise. It would seem that this would work: Python 2.4.1 (#2, Mar 31 2005, 00:05:10) [GCC 3.3 200303