TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Awaitless: Ipython and REPL and Coroutines – Suffering

3 点作者 gsmecher9 个月前

1 comment

gsmecher9 个月前
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>