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 vstinner
Recipients cagney, methane, nanjekyejoannah, pablogsal, serhiy.storchaka, vstinner
Date 2019-04-15.09:41:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555321272.9.0.260136060485.issue36619@roundup.psfhosted.org>
In-reply-to
Content
Maybe we need to expose an object in the os module to list which parameters are supported. setsid is not argument, but scheduler is another argument. There is also a discussion to add another argument to os.posix_spawn() to specify the working directly: it's not possible on all platforms neither.

Currently, there are os.supports_* constants like os.supports_dir_fd (set of function names). But I would prefer to have an object just for posix_spawn. Maybe:

os.supported_posix_spawn_args = ('file_actions', setpgroup', 'resetids', 'setsid', 'setsigmark', 'setsigdef', 'scheduler')

The value would depend depending on the platform.
History
Date User Action Args
2019-04-15 09:41:12vstinnersetrecipients: + vstinner, methane, serhiy.storchaka, cagney, pablogsal, nanjekyejoannah
2019-04-15 09:41:12vstinnersetmessageid: <1555321272.9.0.260136060485.issue36619@roundup.psfhosted.org>
2019-04-15 09:41:12vstinnerlinkissue36619 messages
2019-04-15 09:41:12vstinnercreate