Anoop Saldanha wrote:
> I think he/she has to supply the patch with the right type for the temp 
> variable.
> 
> Should the type of the temp variable be of PyrexTypes.py_object_type?  
>  From what I can see, the code is currently using PyrexTypes.py_object_type.

First off, I was wrong in my previous email; step is NOT put into a 
temporary, and it probably should be.

Secondly, the type to use for temps should be the same as the nodes 
containing the expressions in question. E.g. self.step.type, 
self.bound1.type, and so on, contains references to the right type 
objects. (Inspect the tree of a for-loop by "print 
somenode.dump()"/"print self.dump()" to see how it works -- note that 
e.g. the type of IntNodes doesn't show up here as it is a hard-coded 
attribute for that class.)

-- 
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to