Robert Bradshaw, 01.12.2009 04:36:
> one could write
> 
> def foo(int* data):
>     ...
> 
> and data would be "extracted" via the buffer interface. That could get  
> messy with char*.

Less messy than for int*, for sure. At least, char* has a somewhat well
defined termination character '\0'. How would you know how many elements an
int* parameter would refer to?

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

Reply via email to