[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

lilydjwg report at bugs.python.org
Wed Nov 14 08:50:49 EST 2018


New submission from lilydjwg <lilydjwg at gmail.com>:

When I pass pathlib.Path to asyncio.create_subprocess_exec I get:

TypeError: program arguments must be a bytes or text string, not PosixPath

It's not so good when subprocess accepts this kind of arguments without issues. So can you add support for this?

----------
components: asyncio
messages: 329907
nosy: asvetlov, lilydjwg, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does
type: enhancement
versions: Python 3.7

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


More information about the Python-bugs-list mailing list