Comment #42 on issue 1671 by smichr: runtests modifications and docstring  
corrections
http://code.google.com/p/sympy/issues/detail?id=1671

After working on this issue for some time now, I leave a few notes. I'm not  
sure if
here or in the commit message is the best place to put them.

[*] I think it's possible to sort the docstrings by order of lineno rather  
than
function name. This might make editing errors easier later. Right now I  
think they
are sorted by function name.

[*] The line numbers reported for decorated functions like @cacheit and  
@vectorize
are significantly off in the doctest reporting. In a casual look, it seems  
like they
are off by something close to the line numbers of the decorator's function  
but it
wasn't exact. That is an area for improvement in the reporting. The  
function name and
failing code are given, however, and that usually suffices to find the  
error.

[*] Doctest wouldn't accept the following even though it's fine for py  
scripts:

      >>> from sympy.polys.galoispolys import (gf_from_dict, gf_diff,
                                               gf_sqf, gf_pow)

For the doctest to not fail you have to either put a line continuation  
character at
the end of the line

      >>> from sympy.polys.galoispolys import (gf_from_dict, gf_diff, \
                                               gf_sqf, gf_pow)

or don't indent the continued lines

      >>> from sympy.polys.galoispolys import (gf_from_dict, gf_diff,
gf_sqf, gf_pow)


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to