open
for processes is different with mode strings vs. keyword args
#32193
Labels
io
Involving the I/O subsystem: libuv, read, write, etc.
minor change
Marginal behavior change acceptable for a minor release
Milestone
We allow both mode strings (
"r"
etc.) and keyword arguments (read=true
) inopen
for both commands and files. Generally the mode strings correspond to equivalent keyword arguments. However they behave differently for processes:This is because there is a special method for opening a process with a function and mode string (which adds the ProcessFailedException), but the keyword arg form is caught by the fallback that just calls
close
when the function returns. I assume we want them both to give the ProcessFailedException?The text was updated successfully, but these errors were encountered: