TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 4 слични објави

Пребарај: #sylviamiami

当前筛选 #sylviamiami清除筛选

Post 🇫🇷 & 🇺🇸 🇫🇷🚨📣 Mike Pompeo APPLAUDI pour avoir demandé que les livres d’histoire ne parlent pas des victimes de Gaza…👀🤔 L'ancien secrétaire d'État américain Mike Pompeo a déclaré, lors d'une conférence pro-israélienne, qu'il fallait veiller à ce que les livres d'histoire "ne parlent pas des victimes de Gaza". Applaudi par l'audience, il a affirmé que les "véritables victimes" étaient les Israéliens. 🟢 Rappel - La Floride sous Influence Étrangère… 👉https://t.me/sylviamiamiofficiel/5377 🇺🇸🚨📣 Mike Pompeo APPLAUDED for asking that history books not speak about the victims of Gaza… 👀🤔…()…👇 📍Source 👉 nouvelleaubefr ♦️sur X 👉 https://x.com/sylviamiami1776/status/2011514042397941874?s=46&t=sxY0HSCpYKEdPDgmFgbPCQ 🇺🇸🦅🇫🇷 Sylvia Miami 👉linkmix.co/20609370 #SylviaMiami

Hashtags

Post 🇫🇷 & 🇺🇸 🇫🇷🚨📣 Epstein Files : le nom de Madeleine McCann apparaît 🥹…👇 Le nom de la petite Madeleine McCann apparaît dans les documents de l’affaire Epstein concernant Ghislaine Maxwell, « l’associée d’Epstein ». Quand Madeleine a disparu en 2007 au Portugal, un portrait-robot de suspect montrait une femme ressemblant fortement à Ghislaine Maxwell. Selon les fichiers Epstein, en septembre 2009, Ghislaine Maxwell aurait été vue avec une enfant correspondant à la description de Madeleine, deux ans après sa disparition… 🇺🇸🚨📣 Epstein Files: The name of Madeleine McCann appears 🥹…👇 📍 Source Emelia Rjl ♦️ Post sur X 👉 https://x.com/sylviamiami1776/status/2022622365281091796?s=46&t=sxY0HSCpYKEdPDgmFgbPCQ 🇺🇸🦅🇫🇷 Sylvia Miami 👉linkmix.co/20609370 #SylviaMiami #EpsteinFiles#MadeleineMcCann

🥹🚨📣 Olivier Ferrand (97 % de son corps brûlé à 9 ans), alias Captain Icarus, inspire et conseille les victimes de brûlures, dont celles de Crans-Montana. Faites passer son message 🙏🕊️ #cransmontana#brulure#aide#réveillon#incendie 📌association burns and smiles 📌association des brûlés de France 📌flavie association ♦️ Post sur X ➡️ https://x.com/sylviamiami1776/status/2008463123145969800?s=46&t=sxY0HSCpYKEdPDgmFgbPCQ 🇺🇸🦅🇫🇷 Sylvia Miami 👉linkmix.co/20609370 #SylviaMiami

🍑🍆😍PÉDO-CRIMINALITÉ💗👶🔞 ET SI LA VÉRITÉ LA PLUS SOMBRE SE CACHAIT SOUS NOS PIEDS ? 3 juin 2025 Post 🇫🇷 & 🇺🇸 🇫🇷🚨📣 Les nouveaux documents déclassifiés de l’affaire Epstein révèlent que, je cite : « des suprémacistes juifs comme Epstein nous considèrent comme du bétail, des Goyim nés uniquement pour les servir. » 🎥 ÉCOUTEZ avec attention cette courte vidéo jusqu’au bout👀🔥 🇺🇸🚨📣 The newly declassified documents from the Epstein case reveal, I quote: “Jewish supremacists like Epstein see us as cattle Goyim who are born only to serve them.” 🎥 WATCH this short video carefully until the end 👀🔥 📍Source KagDrogo ♦️ sur X ➡️ https://x.com/sylviamiami1776/status/2018620480240996560?s=46&t=sxY0HSCpYKEdPDgmFgbPCQ 🇺🇸🦅🇫🇷 Sylvia Miami 👉linkmix.co/20609370 #SylviaMiami #Trump#Epstein #Rothschilds #JPMorgan#BlackRock #Ukraine#Goyim