Re: [Cython] [Bug] Unable to cast to python type.

2015-10-18 Thread Carlos Pita
I've been trying to understand the problem here. The cause is easy to explain, for the cure I would like to consult the savvy before PR'ing. The cause: * Parsing of '<...>' will instantiate a typecast from a basetype node and a declarator node, then the typecast type will be inferred from these

[Cython] [Bug] Unable to cast to python type.

2015-10-16 Thread Carlos Pita
Hi, import cython as cy y = cy.cast('list', x) fails to compile with "AttributeError: 'TypecastNode' object has no attribute 'typecheck'". But the following examples do compile: y = x y = cy.cast('int', x) Cheers -- Carlos ___ cython-devel mailing