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

Add a LineReader? #22

Open
gmacon opened this issue Dec 8, 2023 · 3 comments
Open

Add a LineReader? #22

gmacon opened this issue Dec 8, 2023 · 3 comments

Comments

@gmacon
Copy link

gmacon commented Dec 8, 2023

I'm interested in adding the LineReader that @njsmith posted on StackOverflow to trio-util. I've used in on a couple internal projects. I'm not sure it's 100% baked in its current form (for example, there are no tests right now), but I'd be willing to put in some work improving it if it would be accepted here

@belm0
Copy link
Contributor

belm0 commented Dec 10, 2023

The follow-up discussion (python-trio/trio#796) looks daunting, I haven't read through it. At a glance, I gather what was posted on stack overflow had some holes and people made various enhancements.

That trio issue may be a good venue to see if anyone would like to collaborate with you and get something into trio proper.

@gmacon
Copy link
Author

gmacon commented Dec 10, 2023

That's a long discussion...

I'm not sure I have a clear takeaway, though. It feels like Trio will eventually get a well-designed and flexible API merged in, but I'm personally more interested in a good-enough solution being available today. The code njs posted to SO solves exactly one problem, and it happens to solve the problem I have, but it isn't as flexible as what's being discussed in the follow-up.

Would y'all be willing to accept the current implementation plus tests knowing that it's limited and only solves one problem to fill this gap until the complete solution is available natively in Trio?

@belm0
Copy link
Contributor

belm0 commented Dec 10, 2023

Seems reasonable. Be forewarned that trio-util may have some bit rot to navigate, and we strictly need to maintain support for older trio and python versions.

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

No branches or pull requests

2 participants