Source

Numpy Toy Box / carraygetwrap / test_print.py

Full commit
import numpy
from carraygetwrap import *

caw = CArrayWrap(2,10)
a = caw.get_array()
a[:] = numpy.arange(numpy.prod(a.shape)).reshape(a.shape)

print "caw.print_array()"
caw.print_array()
print "print a"
print a
print "del caw"
del caw
print "print a"
print a