Skip to content
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

bpython can't be run inside of bpython #520

Closed
thomasballinger opened this issue Apr 15, 2015 · 2 comments
Closed

bpython can't be run inside of bpython #520

thomasballinger opened this issue Apr 15, 2015 · 2 comments

Comments

@thomasballinger
Copy link
Member

@thomasballinger thomasballinger commented Apr 15, 2015

>>> import bpython.curtsies
>>> bpython.curtsies.main()

fails because (at least) stdin isn't a real file descriptor. We're going to have problems with any program that does this, I think we should special-case same-process bpython though. This would make using a new Repl instance from bpdb work.

@thomasballinger
Copy link
Member Author

@thomasballinger thomasballinger commented Apr 15, 2015

Here's an interesting solution: https://github.com/bpython/bpython/compare/debugging-uncaught-exceptions

It makes the Curtsies objects global, and the new bpython Repl object reuses them.

@thomasballinger
Copy link
Member Author

@thomasballinger thomasballinger commented Aug 6, 2016

The reason this was important was for launching bpython from within a debugger that was launched from bpython. This isn't a priority.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.