8000 __repr__ for s-exp is misleading · Issue #256 · amazon-ion/ion-python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

__repr__ for s-exp is misleading #256

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

Open
rmarrowstone opened this issue Apr 4, 2023 · 1 comment
Open

__repr__ for s-exp is misleading #256

rmarrowstone opened this issue Apr 4, 2023 · 1 comment
Labels

Comments

@rmarrowstone
Copy link
Contributor
rmarrowstone commented Apr 4, 2023

The repr for s-expressions is indistinguishable from that of lists:

>>> simpleion.loads('()')
[]
@rmarrowstone
Copy link
Contributor Author

An observation is that the in-memory type of an s-expression is a list. A python tuple may map to a list or a s-exp depending on a flag to the serialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0