TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Awaitless: Ipython and REPL and Coroutines – Suffering

3 pointsby gsmecher9 months ago

1 comment

gsmecher9 months ago
I&#x27;ve pushed a couple of boulders up this particular hill, and none of them have stayed there.<p>Trouble is, Python is a great stack for communicating with networked instrumentation - except when asyncio gets involved. And, talking with devices over a network is a picture-perfect use case for asyncio.<p>My last attempt was &quot;tworoutines&quot; [1], which tried to marry async and sync functions under a common wrapper. At the time I wrote it, it was clear tworoutines ran contrary to the direction Python was taking asyncio. Without nest_asyncio [2], It was fairly brittle and has become more brittle over time. The primary developer for nest_asyncio unfortunately passed away earlier this year.<p>There is a long discussion here [3, 4], including representation from Python higher-ups as well as other people writing instrumentation&#x2F;science software. In other words, it&#x27;s not just us.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;gsmecher&#x2F;tworoutine">https:&#x2F;&#x2F;github.com&#x2F;gsmecher&#x2F;tworoutine</a><p>[2]: <a href="https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;nest-asyncio&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;nest-asyncio&#x2F;</a><p>[3]: <a href="https:&#x2F;&#x2F;bugs.python.org&#x2F;issue22239" rel="nofollow">https:&#x2F;&#x2F;bugs.python.org&#x2F;issue22239</a><p>[4]: <a href="https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;issues&#x2F;66435">https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;issues&#x2F;66435</a>