Re: [Cython] Transformation of pxds

2011-07-26 Thread Stefan Behnel
Romain Guillebert, 26.07.2011 04:10: I can now compile pxd files, but I have encountered something rather strange : AnalyseExpressionsTransform turns : cimport foo def test(): foo.printf() into : cimport foo def test(): printf() This makes sense from the POV of C, which has a fla

Re: [Cython] Transformation of pxds

2011-07-25 Thread Romain Guillebert
Hi I can now compile pxd files, but I have encountered something rather strange : AnalyseExpressionsTransform turns : cimport foo def test(): foo.printf() into : cimport foo def test(): printf() It is due to the method analyse_as_cimported_attribute of AttributeNode in the file Cytho

Re: [Cython] Transformation of pxds

2011-07-23 Thread Stefan Behnel
Hi Romain, CC-ing cython-devel here, as this is not an entirely trivial question to answer. Romain Guillebert, 23.07.2011 06:52: During this week, I've been trying to find a way to implement cimport, I think that the cleanest way of implementing this is to compile pxds just like pyxs are comp