[sage-devel] Re: Cython code and doctests

2009-06-28 Thread Simon King
Hi! On 28 Jun., 17:15, Dag Sverre Seljebotn wrote: > I'm not sure what you refer to in the latter paragraph (perhaps it's > something Sage-specific thing I don't know much about)... I meant the following: Assume you have files foo.pyx or bar.py that provide modules for Sage. In particular, the

[sage-devel] Re: Cython code and doctests

2009-06-28 Thread Dag Sverre Seljebotn
Simon King wrote: > Hi Bjarke! > > On 28 Jun., 00:17, Bjarke Hammersholt Roune > wrote: >> How do I doctest Cython functions taking C data structures? I don't >> seem to be able to construct Cython data in the doctest. > > Once, someone gave me the hint to create a function that takes usual > P

[sage-devel] Re: Cython code and doctests

2009-06-27 Thread Simon King
Hi Bjarke! On 28 Jun., 00:17, Bjarke Hammersholt Roune wrote: > How do I doctest Cython functions taking C data structures? I don't > seem to be able to construct Cython data in the doctest. Once, someone gave me the hint to create a function that takes usual Python/Cython classes as input but