[Cython] Cython, pointers, and scope

Robert Bradshaw robertwb at math.washington.edu
Thu Jul 23 21:23:11 CEST 2009


On Jul 23, 2009, at 11:47 AM, Andy Michaels wrote:

> Hello all,
>
> I have recently started using cython for a project that I am  
> working on.  First, understand that I am relatively new to python,  
> let alone cython which I started to delve into today.  Anyway...  
> for this project, I need to dynamically allocate memory for a 2D  
> array (a la malloc(...)).  Unfortunately, I have become confused  
> with what might be a scope issue, however I am unsure.  I will  
> start with a quick example of my problem:

This is the second time this question came up today. See

http://wiki.cython.org/FAQ#HowdoIassigntoaglobalvariable.3F

- Robert



More information about the Cython-dev mailing list