I tried creating an autodoc file for the functions in simplify.py, but  
I couldn't get it to work.  I followed the example of other files like  
doc/src/modules/solvers.txt and created a file called simplify.txt  
with this text:

Simplify
========

.. currentmodule:: sympy.simplify

Simplify
--------
.. automethod:: sympy.simplify.simplify

But Sphinx gives
[...]
doc/src/modules/simplify.txt:8: (WARNING/2) autodoc can't import/find  
method 'sympy.simplify.simplify', it reported error: "'function'  
object has no attribute 'simplify'", please check your spelling and  
sys.path
[...]

I don't know very much about Sphinx and autodoc, so I may be doing  
something wrong, but based on the output from Sphinx, I believe the  
problem may have to do with the fact that "simplify" the module and  
"simplify" the function both have the same name.  For example,

 >>> import sympy
 >>> type(sympy.solvers)
<type 'module'>
 >>> type(sympy.simplify)
<type 'function'>

Is there a way around this, or do we need to change the name of  
"simplify" the module to something else, like "simplifiers"?

Aaron Meurer

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

Reply via email to