[issue36814] posix_spawn explicit file_actions=None throws error
Matthew Tanous
report at bugs.python.org
Mon May 6 11:05:56 EDT 2019
New submission from Matthew Tanous <mtanous22 at gmail.com>:
Allowing posix_spawn file_actions to default to None works, but explicitly setting it throws a TypeError:
Python 3.8.0a3 (v3.8.0a3:9a448855b5, Mar 25 2019, 17:05:20)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> os.posix_spawnp('whoami', ['whoami'], os.environ, file_actions=None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: file_actions must be a sequence or None
This required me to default to an empty sequence to complete it:
>>> os.posix_spawnp('whoami', ['whoami'], os.environ, file_actions=[])
6308
----------
components: Library (Lib)
messages: 341522
nosy: Matthew Tanous
priority: normal
severity: normal
status: open
title: posix_spawn explicit file_actions=None throws error
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36814>
_______________________________________
More information about the Python-bugs-list
mailing list