Skip to content

Pylene-numpy: error of argument checking

When passing an integer to a function taking an numpy array to be converted to a ndbuffer_image, no error is throw for invalid argument.

Example:

from pylena import dummy # Binding of a function void dummy(ndbuffer_image img)
a = 10
dummy(10)

Result:

ValueError: Array should be C contiguous