-
Notifications
You must be signed in to change notification settings - Fork 18
Trailing space in output of print with comma #34
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
Comments
Ah, good find. Thanks for reporting. |
I am on it. Needed a push to learn Golang anyway... |
From https://docs.python.org/2/reference/simple_stmts.html#the-print-statement:
This seems to be not that easy... Do not print a space before:
|
|
Pypy does the right thing, I guess:
And the pypy code is so easier to understand! Update:Just to note: There is 2 pypy The "print STATEMENT" implementation is attached to a specific bytecode on Pypy. |
Looks like the way to go is via the softspace attribute of I had updated grumpy File but it seems to be not available yet. Is there anything yet I need to do to access this in Python code?
|
Discussed on gitter, but the softspace attr is not currently supported. Looks like Alan is going to add it. |
After discussion on gitter, implemented the The fix here will start to be implemented on the branch of google#243 |
google#223 opened by @S-YOU on 27 Jan 2017
Minor issue, but reporting what I noticed. For given code.
The text was updated successfully, but these errors were encountered: