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

CLN: Add __str__ method + fix __repr__ method of Sequence #214

Open
2 tasks
NickleDave opened this issue Dec 31, 2022 · 0 comments
Open
2 tasks

CLN: Add __str__ method + fix __repr__ method of Sequence #214

NickleDave opened this issue Dec 31, 2022 · 0 comments

Comments

@NickleDave
Copy link
Collaborator

The Sequence.__repr__ currently prints a human-readable summary of an instance as a "Sequence with $n$ segments".

This is what a __str__ representation should do, but there isn't one currently.

  • Make this the __str__ method
  • Rewrite the __repr__ method to be closer to something we could pass to an eval method. Don't forget the reprlib exists in the standard library.
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