Uh oh!
There was an error while loading. Please reload this page.
Allow Path in create_subprocess_* - #4159
Conversation
Uh oh!
There was an error while loading. Please reload this page.
srittau
commented
Jun 3, 2020
I am sorry for not checking earlier, but |
Dreamsorcerer
commented
Jun 3, 2020
Huh, that's weird. I'm running this in Python 3.8: Also, for I'm just using the default asyncio implementation in an aiohttp app. |
srittau
commented
Jun 4, 2020
It's possible that asyncio provides its own loops that support this. Could you add a comment to the two arguments to the effect that not all loops support PathLike arguments, just to clarify this? |
OK, digging in a little closer, if you follow the function calls through here: That then converts the Path objects here: However, it only does so if |
Dreamsorcerer
commented
Jun 4, 2020
However, I see that there is an explicit check for str/bytes in the 3.7 branch. I'll make it conditional on 3.8 then. |
No description provided.