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
Question: Should toString
use __repr__
or __str__
?
#4040
Comments
Same as you, I don't have a strong opinion but I have a very mild preference for |
Same for me. +0.5 for using For repr, I find it weird that if you take for instance |
I'm also +1 for |
Okay, since all are agreed that using |
This sounds good to me. |
In #4037 (comment) @Duncanr-glitch said:
Looking at the history,
toString
was added here: 9579aa9I am not aware that we've ever discussed what this should do. I personally don't have a strong opinion. Interestingly,
toString
is missing from our proxy table, we should probably update the table in any case.https://pyodide.org/en/stable/usage/type-conversions.html#proxying-from-python-into-javascript
@rth @ryanking13 @antocuni what do you all think?
The text was updated successfully, but these errors were encountered: