Skip to content

[python] Some array types are unknown #640

@olebole

Description

@olebole

This is observed when testing #468, with Python 3.7.4.

function ARG_PASS_RETURN, arg
  return, arg
end

Some array types are unknown

>>> import GDL
>>> import numpy
>>> arg = numpy.arange(0, 259, dtype=int)
>>> retval = GDL.function('arg_pass_return', arg)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
GDL.error: Calling ARG_PASS_RETURN: FromPython: Unknown array type.
>>> arg = numpy.arange(-255, 255, dtype=numpy.int8)
>>> retval = GDL.function('arg_pass_return', arg)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
GDL.error: Calling ARG_PASS_RETURN: FromPython: Unknown array type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions