Dear Team,

I have a couple of .pyx files and (sometimes trying to be a good boy)
I provided long doc strings with lots of doc tests.

However,
   sage -t foo.pyx
fails by raising errors on *all* tests that involve any function from
'foo.pyx'.

First attempt:
  Plainly use the function 'bar' from 'foo.pyx'
  Result: NameError: name 'bar' is not defined

Second attempt:
  Import 'foo' in all examples (there is 'foo.so' in the directory)
  Result: ImportError: No module named foo

Third attempt:
  Explicitly name the function 'foo.bar'.
  Result: NameError: name 'foo' is not defined

The puzzling fact is: The test examples work if I try them directly in
Sage after doing
  from foo import *

The manual didn't help me.
What can I do? Here one example, resulting in "NameError: name
'FilterDegreeType' is not defined".

def FilterDegreeType(dv, rt):
    r"""
    FilterDegreeType(d,r): Compute the filter degree type, where
        d is the list of degrees of a filter regular parameter system,
and
        r is the 'raw filter degree type' (list of integers) of these
parameters.

    EXAMPLES:
        sage: d=[8,4,6,4]
        sage: r=[-1,4,7,14,18]
        sage: FilterDegreeType(d,r)
        [-1, -2, -3, -4, -4]
        sage: d=[8,4,6,3]
        sage: FilterDegreeType(d,r)
        [-1, -2, -3, -3, -3]
    """


Yours
      Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to