On Mon, May 12, 2008 at 11:10 AM, Nathan Dunfield <[EMAIL PROTECTED]> wrote:
>
>  > Oh, that's annoying, it doesn't display the Cython command line.
>  > Anyway, if you don't give the -p or --embed-positions option to
>  > Cython, then source introspection should *not* work:
>
>  I cython'd on the command line with the -p option and then setup.py
>  installed.
>
>  I now get a different error message when I try introspection:
>
>  sage: import introtest
>  sage: introtest.intro??
>  Error getting source: s must be a string
>
>  instead of
>
>
>  Error getting source: arg is not a module, class, method, function,
>
>  Does the introtest.pyx file have to copied to somewhere in particular
>  for this to work, or is everything supposed to embedded in the *.so
>  module binary?
>

The binary absolutely does *not* have the source code embedded in it.
I think foo?? assumes that introtest.pyx is copied somewhere in the SAGE
library actually.

Anyway, short answer -- source code introspection for .pyx files is *only*
fully implemented for .pyx files that are part of the sage library (i.e., listed
in devel/sage/setup.py).   File a trac ticket to make it work in general.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to