Skip to content

vectors of mixed type #24

@justin2004

Description

@justin2004

this order works as expected

>>> apl.eval("3,'a'")
[3, 'a']

but this does not

>>> apl.eval("'a',3")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/pynapl/pynapl/APLPyConnect.py", line 410, in eval
    return answer.to_python(self)
  File "/root/pynapl/pynapl/Array.py", line 210, in to_python
    return ''.join(self.data)
TypeError: sequence item 1: expected str instance, int found

although that list that would be produced is valid python:

>>> ['a',3]
['a', 3]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions