Le samedi 20 août 2011 à 18:34 -0700, Luke a écrit :
On Sat, Aug 20, 2011 at 3:37 PM, Aaron Meurer asmeu...@gmail.com wrote:
I don't know of any doctests in SymPy that do this. Why can't you put
imports in each doctest? I'd highly recommend it.
The reason for not wanting to do the
On Thu, Aug 25, 2011 at 7:00 AM, Ronan Lamy ronan.l...@gmail.com wrote:
Le samedi 20 août 2011 à 18:34 -0700, Luke a écrit :
On Sat, Aug 20, 2011 at 3:37 PM, Aaron Meurer asmeu...@gmail.com wrote:
I don't know of any doctests in SymPy that do this. Why can't you put
imports in each
By the way, I agree with Ronan, and even though I've been helping you
figure out how to use the globs thing, I still think doing it the
explicit way would be better.
It may seem redundant to you if you have the same thing over and over
again in a file, but consider it from the user's point of
Well, I don't know why you are doing things this way, but clearly
python -m doctest file.py or ./bin/doctest file.py do not run __name__
== `__main__`. Does it work if you replace import doctest with
from sympy import doctest?
Aaron Meurer
On Sun, Aug 21, 2011 at 2:32 PM, Luke Peterson
The main reason I am doing things this way is because this is how I
learned it when reading docs.python.org:
http://docs.python.org/py3k/library/doctest.html?highlight=doctest#doctest
The second reason I prefer this way is because it makes it very easy
to control the execution context of all the
Oh, sorry. I see that testmod() is the function. Does it maybe work
if you pass the globs argument to SymPy's doctest(). It may pass
through. If not, you may have to modify it so that it does (or
perhaps there's another way to do it; again you'll unfortunately have
to read some source code
On Sat, Aug 20, 2011 at 7:34 PM, Luke hazelnu...@gmail.com wrote:
On Sat, Aug 20, 2011 at 3:37 PM, Aaron Meurer asmeu...@gmail.com wrote:
I don't know of any doctests in SymPy that do this. Why can't you put
imports in each doctest? I'd highly recommend it.
The reason for not wanting to do
On Sun, Aug 21, 2011 at 10:42 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Sat, Aug 20, 2011 at 7:34 PM, Luke hazelnu...@gmail.com wrote:
On Sat, Aug 20, 2011 at 3:37 PM, Aaron Meurer asmeu...@gmail.com wrote:
I don't know of any doctests in SymPy that do this. Why can't you put
imports in
On Sun, Aug 21, 2011 at 12:32 PM, Luke hazelnu...@gmail.com wrote:
On Sun, Aug 21, 2011 at 10:42 AM, Aaron Meurer asmeu...@gmail.com wrote:
On Sat, Aug 20, 2011 at 7:34 PM, Luke hazelnu...@gmail.com wrote:
On Sat, Aug 20, 2011 at 3:37 PM, Aaron Meurer asmeu...@gmail.com wrote:
I don't know of