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
I've been using bpython for a long time due to its twisted support. I notice that the urwid backend is going away. Are there plans for replacing twisted support with asyncio?
Hey glyph, I am planning on not removing these backends until their unique features are available in the main backend. A big part of the deprecation messages is that we can gather information on differences and usecases for the various current backends and consolidate them.
I'd be interested in what support would be ideal for you @glyph, is it good embed behavior + twisted event loop? Just the event loop integration?
Edit: (in order to assess whether there is a way to support your use case with curtsies or whether maintaining the urwid version is important for that)
I still use it almost every day, but I certainly understand if the maintenance burden is too intense. If we fixed https://twistedmatrix.com/trac/ticket/9968 you could do standard asyncio support and get twisted for free.
(I care about Twisted's reactors, because I actually use bpython with cfreactor on the mac, and on the rare occasions when I'm still using a Linux GUI, gireactor so I can run the event loop and display GUI elements but still interact with them from a terminal, rather than simply doing network I/O.)
Activity
supakeen commentedon Apr 11, 2020
Hey glyph, I am planning on not removing these backends until their unique features are available in the main backend. A big part of the deprecation messages is that we can gather information on differences and usecases for the various current backends and consolidate them.
thomasballinger commentedon Apr 13, 2020
I'd be interested in what support would be ideal for you @glyph, is it good embed behavior + twisted event loop? Just the event loop integration?
Edit: (in order to assess whether there is a way to support your use case with curtsies or whether maintaining the urwid version is important for that)
glyph commentedon Apr 13, 2020
This is great to hear, thank you!
glyph commentedon Apr 13, 2020
I have some janky stuff that connects it to the event loop in my python startup. It looks like this:
https://gist.github.com/glyph/e02303b61ca6fec0f0bc504b7f5fe52e
Mainly I just want the event loop integration though, so that I have the ability to build something like that.
thomasballinger commentedon Nov 9, 2021
@glyph is this still something you're using? This topic came up again and since your name was mentioned I wanted to check.
I ought to look into reactor support for Curtsies, it's driving the event loop right now.
glyph commentedon Nov 9, 2021
I still use it almost every day, but I certainly understand if the maintenance burden is too intense. If we fixed https://twistedmatrix.com/trac/ticket/9968 you could do standard asyncio support and get twisted for free.
glyph commentedon Nov 9, 2021
(I care about Twisted's reactors, because I actually use bpython with
cfreactoron the mac, and on the rare occasions when I'm still using a Linux GUI,gireactorso I can run the event loop and display GUI elements but still interact with them from a terminal, rather than simply doing network I/O.)thomasballinger commentedon Nov 9, 2021
There are still no plans to remove Urwid until this is available somewhere else, just thinking about the somewhere else part.