-
Notifications
You must be signed in to change notification settings - Fork 110
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
Q: how to pass a string as stdin to Runners' run()? #7145
Comments
It seems the documentation is wrong, it must be
|
ATM, I consider this a bug. |
Maybe we should change the description and the check and only allow bytes-input. That would force the user to explicitly encode the string (instead of us encoding it with a fixed encoding, or the system-preferred encoding, or the encoding from the protocol keyword arguments) |
Seems like a good point. Will change #7155 accordingly. |
Issue fixed in |
The docstring of the Runner's run method state the following about the
stdin=
parameter:datalad/datalad/runner/runner.py
Lines 91 to 98 in 66a8b77
However, if I provide a string to it (I tried toying around in the context of #6514), I get
I feel like I might be missing something fairly obvious. How can I provide a string as stdin to a
runner.run()
call?The text was updated successfully, but these errors were encountered: