New submission from Matthew Tanous <mtanou...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36814>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to