Comment #23 on issue 2252 by [email protected]: activate docstring examples for symarray()
http://code.google.com/p/sympy/issues/detail?id=2252

Yes, I have meant a directive. But I just now think, it is not clear, whether a warning message is needed when numpy is not installed. That is, if numpy is not installed, then tests are passes, if it's not installed, then they are skipped, but warning message (a single for doctest running) appear.

This is can be useful, even taking into account that in future numpy could be replaced with SymPy analog.

I think it will be better if syntax for this directive will be extensible e.g. #doctest: +MODULE:numpy. If it is possible for docutils parsing at whole.
Or #doctest: +MODULE_numpy.

Also I think, that there is no needs to insert "try ...except" statement in docstring itself. Sufficient to insert this statement somewhere in /test/docutils procedure itself. This procedure handling MODULE_numpy options and run, or do not run test, depending on the circumstances.

For all above, I hope that the problem about readability will be solved.

BTW, if you look forward for issues, once it is concerned matrices, I can additionally offer to look https://github.com/sympy/sympy/pull/115#issuecomment-938843

Also, I want to add that in spite of simplicity of this original issue 2252, it has real significance as others.

--
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