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

__repr__ for s-exp is misleading #256

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