python-trio / python-trio/trio
Add a method to trio.BlockingTrioPortal for conveniently using async context managers
Open
Nobody has claimed this yet.
polish
threads
- Dominant language
- Python
- Stars
- 7.3k
- Forks
- 431
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 6
Description
I guess maybe sync context managers too, but I can't think of any sync context managers that would make sense to call, whereas with portal.async_cm(my_trio_lock): ... makes perfect sense.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with trio.BlockingTrioPortal, the entry point named in the issue, and examine how it could support the proposed portal.async_cm usage. Done means a portal can conveniently use an async context manager in a with block; the issue does not identify tests or files to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100