On Mon, Oct 4, 2010 at 8:43 PM, Robert Bradshaw <[email protected]> wrote: > On Mon, Oct 4, 2010 at 10:54 AM, Lisandro Dalcin <[email protected]> wrote: >> Please consider this code: >> >> from libcpp.vector cimport vector >> v = new vector[double]() >> from math import pi >> v.push_back(pi) >> >> >> This generated bad code, more or less: >> >> double &tmp; // bad code, un-init reference! >> tmp = PyFloat_AsDouble(pi) >> v.push_back(tmp) > > I don't think this has anything to do with type inference, but it is bad > code... >
http://trac.cython.org/cython_trac/ticket/581 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
