Dear Robert, On 7 Feb., 04:18, kcrisman <kcris...@gmail.com> wrote: > Could you be more specific (e.g. give a toy example of how to > "cimport" Permutations(n) and then use it to do something trivial, for > someone who is still very new at using Cython)?
Indeed, I think it would be good to have *Sage-specific* examples around. For example, when I wrote some Cython modules, it was easy to cimport an extension class from one of my modules into another of my modules (both sitting in the same directory). This works as promised by the Cython documentation. Also, it was no problem to import (without 'c'), say, PolynomialRing from `sage.rings.polynomial.polynomial_ring_constructor`. But when I tried `from sage.rings.polynomial.multi_polynomial_libsingular cimport MPolynomial_libsingular`, things did not work. Why? Is it needed to provide some sort of 'include' directory to the compiler? But I would rather expect that Cython would know where to find `MPolynomial_libsingular` if I explicitly give its location. So, how to cimport an extension class from Sage? Best regards, Simon --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---