-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
capfd in binary mode? #2923
Comments
Hi @asottile! I think so, yes, thanks for the offer. Do you have an API in mind? (I could swear that this has been brought up before, but I can't find the issue...) |
It was probably me before 😆
I'm not sure I necessarily like the api I wrote in #2279 (too easy to mix and match bytes / text and get unicode errors when mixing and matching). I think it would be better to add new separate |
Rá I knew this has been discussed before. 😆
I think this might be the way to go, it might not be easy to change the stream types after it has been created, and having separate methods is clumsy as you noted. From my POV please go ahead. 👍 |
via #2925 (I'll open another issue for |
I'd like something like this to work:
My actual usecase is running
tar
as stdout and then inspecting the outputI'm hacking around with this (which works, but is undeniably fragile):
would pytest be amenable to a PR which enables something like this without hax?
The text was updated successfully, but these errors were encountered: