@Osservatorioitaliano · Post #24309 · 22.03.2026 г., 22:33
#Italia#Referendum2026 Dato parziale a #Cagliari: 48,51% @Osservatorioitaliano
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #402 · 22 дек.
Отдельно разберём TaskGroup, который пришел на замену gather в Python 3.11. Ключевые отличия ▫️create_task() возвращает объект asyncio.Task, у которого есть соответствюущие методы управления. То есть у нас больше контроля ▫️это контекстный менеджер, который гарантирует что все таски будут остановлены по выходу из контекста ▫️ошибка автоматически отменяет незавершенные задачи, ▫️except* передает нам ExceptionGroup, в котором каждую ошибку можно обработать отдельно import asyncio import random async def do_it() -> str: if random.random() < 0.1: raise ValueError('Oops') delay = random.uniform(0.5, 1.5) await asyncio.sleep(delay) return delay async def main(): try: async with asyncio.TaskGroup() as tg: for _ in range(10): tasks.append(tg.create_task(do_it())) for t in tasks: print(t.result()) except *ValueError as e: for err in e.exceptions: print(err) asyncio.run(main()) Рекомендую изучить страницу Coroutines and Tasks из документации, где представлено больше интересных примеров и механизмов - таймауты - отмена задач - создание задач из другого потока #async
Hashtags
Пребарај: #cagliari
@Osservatorioitaliano · Post #24309 · 22.03.2026 г., 22:33
#Italia#Referendum2026 Dato parziale a #Cagliari: 48,51% @Osservatorioitaliano
Hashtags
@ai_match_prediction · Post #11536 · 17.04.2026 г., 09:05
Italy Serie A🇮🇹 2026-04-17 16:30 UTC Sassuolo vs. Como Predicted outcome: Como❌ Predicted score: 1:2 Actual: Sassuolo 2:1 #Sassuolo#Como 2026-04-17 18:45 UTC Inter vs. Cagliari Predicted outcome: Inter✅ Predicted score: 3:1 Actual: Inter 3:0 #Inter#Cagliari #Football#ItalySerieA
@ai_match_prediction · Post #11779 · 27.04.2026 г., 09:05
Italy Serie A🇮🇹 2026-04-27 16:30 UTC Cagliari vs. Atalanta Predicted outcome: Atalanta❌ Predicted score: 1:2 Actual: Cagliari 3:2 #Cagliari#Atalanta 2026-04-27 18:45 UTC Lazio vs. Udinese Predicted outcome: Lazio❌ Predicted score: 2:1 Actual: Draw 3:3 #Lazio#Udinese #Football#ItalySerieA
@ai_match_prediction · Post #11273 · 04.04.2026 г., 05:05
Italy Serie A🇮🇹 2026-04-04 13:00 UTC Sassuolo vs. Cagliari Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Sassuolo 2:1 #Sassuolo#Cagliari 2026-04-04 16:00 UTC Hellas Verona vs. Fiorentina Predicted outcome: Fiorentina✅ Predicted score: 1:2 Actual: Fiorentina 0:1 #HellasVerona#Fiorentina 2026-04-04 18:45 UTC Lazio vs. Parma Predicted outcome: Lazio❌ Predicted score: 1:0 Actual: Draw 1:1 #Lazio#Parma #Football#ItalySerieA
@ai_match_prediction · Post #11975 · 09.05.2026 г., 05:05
Italy Serie A🇮🇹 2026-05-09 13:00 UTC Cagliari vs. Udinese Predicted outcome: Udinese✅ Predicted score: 1:2 Actual: Udinese 0:2 #Cagliari#Udinese 2026-05-09 16:00 UTC Lazio vs. Inter Predicted outcome: Inter✅ Predicted score: 1:2 Actual: Inter 0:3 #Lazio#Inter 2026-05-09 18:45 UTC Lecce vs. Juventus Predicted outcome: Juventus✅ Predicted score: 0:2 Actual: Juventus 0:1 #Lecce#Juventus #Football#ItalySerieA
@ai_match_prediction · Post #11878 · 03.05.2026 г., 05:05
Italy Serie A🇮🇹 2026-05-03 10:30 UTC Bologna vs. Cagliari Predicted outcome: Bologna❌ Predicted score: 2:1 Actual: Draw 0:0 #Bologna#Cagliari 2026-05-03 13:00 UTC Sassuolo vs. AC Milan Predicted outcome: AC Milan❌ Predicted score: 1:2 Actual: Sassuolo 2:0 #Sassuolo#Milan 2026-05-03 16:00 UTC Juventus vs. Hellas Verona Predicted outcome: Juventus❌ Predicted score: 2:0 Actual: Draw 1:1 #Juventus#HellasVerona 2026-05-03 18:45 UTC Inter vs. Parma Predicted outcome: Inter✅ Predicted score: 3:1 Actual: Inter 2:0 #Inter#Parma #Football#ItalySerieA
@ai_match_prediction · Post #11423 · 11.04.2026 г., 05:05
Italy Serie A🇮🇹 2026-04-11 13:00 UTC Cagliari vs. Cremonese Predicted outcome: Cagliari✅ Predicted score: 1:0 Actual: Cagliari 1:0 #Cagliari#Cremonese 2026-04-11 13:00 UTC Torino vs. Hellas Verona Predicted outcome: Torino✅ Predicted score: 2:1 Actual: Torino 2:1 #Torino#HellasVerona 2026-04-11 16:00 UTC AC Milan vs. Udinese Predicted outcome: AC Milan❌ Predicted score: 1:0 Actual: Udinese 0:3 #Milan#Udinese 2026-04-11 18:45 UTC Atalanta vs. Juventus Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Juventus 0:1 #Atalanta#Juventus #Football#ItalySerieA