[Cython] Distutils and pxd files
Ilmar Wilbers
ilmarw at simula.no
Mon Jan 19 20:25:42 CET 2009
There is a type on that page, it should be length rather than height, as
only width and length are defined in the pdx file.
ilmar
Robert Bradshaw wrote:
> On Jan 18, 2009, at 6:00 AM, Ewald R. de Wit wrote:
>
>
>> I have a problem using the example from
>> http://docs.cython.org/docs/sharing_declarations.html#sharing-
>> extension-types
>>
>> I'm compiling it with the setup.py file from below, with the command
>> python setup.py build_ext --inplace
>>
>> When I run it I get the following error:
>>
>> $ python -c 'import Landscaping'
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "Landscaping.pyx", line 6, in Landscaping (Landscaping.c:347)
>> print "Shrubbery size is %d x %d" % (sh.width, sh.height)
>> AttributeError: 'Shrubbing.Shrubbery' object has no attribute 'height'
>>
>> It looks like the Shrubbing.pxd file, where the hight and width
>> attributes are
>> defined, is ignored. How can I fix this?
>>
>
> Did you declare sh to be of type Shrubbery?
>
> - Robert
>
>
>
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
>
More information about the Cython-dev
mailing list