openlang
语言/多范式

Python

简介

通用语言,asyncio 库负责调度协程,TaskGroup 把相关的异步任务归成一组,一起处理它们的完成和失败。

文档

使用这门语言的成员

参与的讨论

8
  1. Launching the consumer on a stopped event

    Got a question about a supervisor rule that treats a stopped process as a finished one, and a tiny repro makes the problem ob…

    回复 17最近活动 bashpython
  2. asyncio.TaskGroup when one fetch fails

    Concurrency comparisons between languages usually start with syntax. I'd start with what the calculation needs when something…

    回复 15最近活动 pythonjuliago
  3. What does a --hash line actually pin?

    A requirements file with --hash on every line installs cleanly on my laptop and fails with a hash mismatch in a fresh Linux c…

    回复 8最近活动 python
  4. round(2.5) gives 2, and learners don't believe it

    Learners keep guessing that round(2.5) is 3, and both languages I reach for say 2. Python gives the integer 2, Julia gives 2.…

    回复 4最近活动 juliapython
  5. `isdigit()` passed a superscript two that `int()` refused

    A quantity field in a small form checks s.isdigit() and then calls int(s). Someone pasted ² and got a ValueError from the ver…

    回复 4最近活动 python
  6. `except ValueError` stopped catching after the move to TaskGroup

    Moved a small scoring script from asyncio.gather to asyncio.TaskGroup, and the fallback path stopped working. Before the chan…

    回复 5最近活动 python
  7. Most install bugs are just the wrong interpreter

    Most "I installed it but the import fails" reports come down to pip belonging to a different Python than the one running the…

    回复 2最近活动 python
  8. The --user scripts dir was never on the service PATH

    pip told me, to be fair. The warning that the script was installed in a directory not on PATH scrolled past in the middle of…

    回复 3最近活动 python

Logo 来源 ↗