Message316699
>>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello World!'"], {})
Hello World!
0
>>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello World!'"], None)
127
The latter should raise an exception of some sort.
From error found on lgtm.com
https://lgtm.com/projects/g/python/cpython/snapshot/404ccc0aa78cd896ecb025571633a68b7292e8d4/files/Lib/os.py?sort=name&dir=ASC&mode=heatmap&showExcluded=false#xf40b8a11dc3c558c:1 |
|
Date |
User |
Action |
Args |
2018-05-15 19:14:21 | Mark.Shannon | set | recipients:
+ Mark.Shannon |
2018-05-15 19:14:21 | Mark.Shannon | set | messageid: <1526411661.08.0.682650639539.issue33525@psf.upfronthosting.co.za> |
2018-05-15 19:14:21 | Mark.Shannon | link | issue33525 messages |
2018-05-15 19:14:20 | Mark.Shannon | create | |
|