You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'bpython.cli.FakeStdin' don't have fileno() method #232
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 :)
Activity
ikanobori commentedon Jul 4, 2014
Fixed by PR 21.
Original Comment By: Sebastian Ramacher
thomasballinger commentedon Jul 7, 2014
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
RichardBronosky commentedon Apr 20, 2015
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 commentedon Apr 21, 2015
For a workaround, you might use
sys.__stdout__which isn't faked.