Message311695
I think I agree with Serhiy here... the whole difference between run([a]) and run(a) is that in the first case 'a' is treated as a path, and in the second it isn't. This distinction long predates pathlib.
Say I have an oddly named binary with an embedded space in its name:
bin = Path("/bin/ls -l")
# Check that this weird file actually exists:
assert bin.exists()
# runs this weird file
subprocess.run([bin])
# Currently an error; if this is implemented, would run
# /bin/ls, and pass it the -l argument. Refers to something
# completely different than our .exists() call above.
subprocess.run(bin) |
|
Date |
User |
Action |
Args |
2018-02-05 22:33:14 | njs | set | recipients:
+ njs, gregory.p.smith, serhiy.storchaka, Phaqui, Roy Williams |
2018-02-05 22:33:14 | njs | set | messageid: <1517869994.31.0.467229070634.issue31961@psf.upfronthosting.co.za> |
2018-02-05 22:33:14 | njs | link | issue31961 messages |
2018-02-05 22:33:14 | njs | create | |
|