Dear Sage introspecters,

I am on my way to improve import_statements (trac #15351) but I have a
problem with sage introspection. I am able to list all submodules of
the Sage library with the pkgutil library but then I somehow need to
read some of their source code (in order to avoid loading them). For
standard python files it is done with the pkglib. But for cython files
it fails. The only alternative I found is to call
sage.misc.sageinspect.sage_getsource. My problem is that I need to
import the module to call this function... which modifies the
namespace of sage !

Do you have a solution from a given module name within the sage
library, let say 'sage.rings.polynomial.real_roots', to obtain its
source code ?

All best,
Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to