[Cython] buffers and flow-control

Dag Sverre Seljebotn d.s.seljebotn at astro.uio.no
Mon May 9 10:01:18 CEST 2011


On 05/09/2011 09:29 AM, Vitja Makarov wrote:
> I've never been using buffers so my question is:
>
> Should uninitialized buffer access raise UnboundLocalVariable error?
>
> Like this:
>
> def foo():
>       cdef object<int>  bar
>       print bar
>

"object[int]" should behave exactly the same way as "object" does during 
control flow analysis.

Dag Sverre


More information about the cython-devel mailing list