We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The print statement is ignoring the >> keyword:
print
>>
This test script outputs AssertionError: 0 chars printed, instead of 3, after printing 'foo' in the stdout.
AssertionError: 0 chars printed, instead of 3
import StringIO fake_stdout = StringIO.StringIO() print >> fake_stdout, 'foo', chars = fake_stdout.tell() assert chars == 3, '%s chars printed, instead of 3' % chars
The text was updated successfully, but these errors were encountered:
Comment by trotterdylan Saturday Apr 22, 2017 at 22:44 GMT
This should be pretty straightforward to support:
Add an arg to Print() that is the object to output to (default will be nil).
Add code to visit_Print() that will pass the dest attribute of the Print node to grumpy.Print() in the generated code.
Sorry, something went wrong.
Comment by alanjds Sunday Apr 23, 2017 at 03:59 GMT
Nice. Will pursue this, as is needed to ease the code to test #130.
No branches or pull requests
The
print
statement is ignoring the>>
keyword:This test script outputs
AssertionError: 0 chars printed, instead of 3
, after printing 'foo' in the stdout.The text was updated successfully, but these errors were encountered: