Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vectors of mixed type #24

Open
justin2004 opened this issue Sep 25, 2022 · 0 comments
Open

vectors of mixed type #24

justin2004 opened this issue Sep 25, 2022 · 0 comments

Comments

@justin2004
Copy link

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant