This is because Cython stores a reference to the array when you create
it. You bypass Numpy's detection of this by passing "refcheck=False",
so it's no surprise that bad things happen.
A stupid way to fix this would be to add:
x = x
after x.resize() call, to update Cython's references.
Hopefully there is a better way to do this, but if not, I would add a
comment explaining the need for the seemingly meaningless assignment.
-Alok
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "cython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
cython-users...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.