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

Pretty-print anything #110

Open
guibou opened this issue Aug 20, 2022 · 2 comments
Open

Pretty-print anything #110

guibou opened this issue Aug 20, 2022 · 2 comments

Comments

@guibou
Copy link
Owner

guibou commented Aug 20, 2022

In PyF we have the {expr:s} or {expr} which converts to string. But it would be nice to have something like python !r to force the conversion to a "repr" format, which should work for any type.

What could be a "repr" format? Well, we could use Generic or Data to derive a generic view of the internal of the structure.

@guibou
Copy link
Owner Author

guibou commented Aug 20, 2022

Rust does pretty printing / debug with #?.

@michaelpj
Copy link

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

2 participants