Skip to content

'bpython.cli.FakeStdin' don't have fileno() method #232

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

Closed
ikanobori opened this issue Jul 4, 2014 · 4 comments
Closed

'bpython.cli.FakeStdin' don't have fileno() method #232

ikanobori opened this issue Jul 4, 2014 · 4 comments
Labels

Comments

@ikanobori
Copy link
Contributor

'bpython.cli.FakeStdin' should have fileno() method


@ikanobori
Copy link
Contributor Author

Fixed by PR 21.


Original Comment By: Sebastian Ramacher

@thomasballinger
Copy link
Member

This has been reverted because it caused a bug with input() in Python 3.

I asked hndrewaall on Bitbucket (who originally raise this issue) why they needed it - said

It solved an issue I had while using fabric under bpython. I doubt an irrelevant one would work, but I also had so many other issues with fabric + bpython that I'm not sure special consideration for that use case is justified. Indeed, it is quite possible that I should be coming up with patches on the fabric side :)

@RichardBronosky
Copy link

I ran into this also. http://stackoverflow.com/questions/29757251/get-the-path-of-the-current-tty-in-python/29757597#29757597 I'm using ioctl http://stackoverflow.com/questions/29614264/unable-to-fake-terminal-input-with-termios-tiocsti/29616465#29616465 to send commands to a alternate local tty to solve the 'live demo typing' problem. The project is at https://github.com/RichardBronosky/ttysend but the use of fileno() has not been committed yet.

@thomasballinger
Copy link
Member

For a workaround, you might use sys.__stdout__ which isn't faked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants