[issue18930] os.spawnXX functions terminates process if second argument is empty list

Stefan Schukat report at bugs.python.org
Mon Jan 6 03:23:53 EST 2020


Stefan Schukat <sschukat at dspace.de> added the comment:

@Batuhan the error does not appear anymore in at least Python 3.6.1
>>> import os
>>> nPath = os.path.join(os.environ["windir"], "notepad.exe")
>>> os.spawnv(os.P_NOWAIT, nPath, []) # or os.spawnv(os.P_NOWAIT, nPath, [], {})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: spawnv() arg 2 cannot be empty

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue18930>
_______________________________________


More information about the Python-bugs-list mailing list