-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Allow Path in create_subprocess_* #4159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I am sorry for not checking earlier, but |
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. |
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 |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.