This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Matthew Tanous
Recipients Matthew Tanous
Date 2019-05-06.15:05:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557155156.27.0.0390065046289.issue36814@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-05-06 15:05:56Matthew Tanoussetrecipients: + Matthew Tanous
2019-05-06 15:05:56Matthew Tanoussetmessageid: <1557155156.27.0.0390065046289.issue36814@roundup.psfhosted.org>
2019-05-06 15:05:56Matthew Tanouslinkissue36814 messages
2019-05-06 15:05:56Matthew Tanouscreate