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

DatumInContext.__repr__ is offputtingly verbose #41

Open
jnothman opened this issue Sep 1, 2016 · 0 comments
Open

DatumInContext.__repr__ is offputtingly verbose #41

jnothman opened this issue Sep 1, 2016 · 0 comments

Comments

@jnothman
Copy link

jnothman commented Sep 1, 2016

For someone playing around with the library in an interactive environment, running some_path.find(some_obj) will return a list of DatumInContexts each of which will be formatted on screen, including the recursive context for every element. Hiding the context avoids large outputs and user confusion. I would rather see one of the following:

  • DatumInContext('value')
  • DatumInContext('value', path='path')
  • DatumInContext('value', path='path', context=...) or DatumInContext('value', path='path', context=None)
  • DatumInContext('value', path='path', context=DatumInContext(...)) or DatumInContext('value', path='path', context=None)

than the fully expanded context repr.

kaapstorm pushed a commit to kaapstorm/python-jsonpath-rw that referenced this issue Feb 4, 2021
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