Hi,
i want to test type of a variable to compare with numpy.ndarray, as far i tried:
(builtins.type numpy.ndarray)
. . ../../../pyffi4python3.xx/pyffi/pyffi-lib/pyffi/python-attributes.rkt:191:7: rp: got: #<procedure:...fi/python-types.rkt:605:22>
so i made classic hack using strings:
(define Z (numpy.array '[[0 0 0 0 0 0]
[0 0 0 1 0 0]
[0 1 0 1 0 0]
[0 0 1 1 0 0]
[0 0 0 0 0 0]
[0 0 0 0 0 0]]))
(string=? (format "~a" (builtins.type (numpy.array '(0)))) (format "~a" (builtins.type Z)))
#t
perhaps there is a more elegant way indeed with pyffi?