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

Резултати

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

Пребарај: #identidad

当前筛选 #identidad清除筛选
Soberanistas

@Soberanistas_ES · Post #680 · 05.01.2026 г., 18:54

✅La Francia Insumisa dejando las cosas claras 🔍 Diputados de "La France Insoumise" promueven un comunitarismo identitario y racializado. Varios políticos han defendido que la representación política debería basarse en criterios étnico-raciales, favoreciendo candidatos “racializados” y vinculando legitimidad política a la pertenencia identitaria en lugar de a un proyecto cívico común. 🗣 Figuras como Éric Coquerel y Sébastien Delogu han planteado que la representación debe reflejar la “color de piel” o identidad de los habitantes de ciertos territorios, y no simplemente la adhesión a valores cívicos. 🎯Aly Diouara llegó a afirmar que solo tiene por misión política defender a “negros y árabes”, excluyendo otros ciudadanos. 📢Carlos Martens Bilongo fue citado por enfatizar la superioridad demográfica de las poblaciones “racializadas” y por comentarios misóginos o despectivos sobre otros grupos. 🔗 Más información en: https://www.causeur.fr/quand-la-grenouille-universaliste-veut-se-faire-plus-grande-que-le-boeuf-ethnico-racialiste-separatisme-delogu-coquerel-martens-bilango-diouara-321018 #Francia#Política#Comunitarismo#Identidad#Representación

RISVEGLIO

@gianlucaprocaccinireport · Post #9872 · 28.08.2025 г., 08:14

Workshop sull’etica dell’AI e sulla sicurezza informatica, in linea con le linee guida federali. L’idea è trasformare la Casa dei Giovani non solo in un polo culturale, ma anche in un hub tecnologico che permetta ai ragazzi della regione di accedere a competenze digitali avanzate, collegate alle priorità di sviluppo tecnologico della Federazione Russa. https://t.me/gianlucaprocaccinireport #GlobalEducation#russia#Lugansk#Donbass#giovani#young#europa#identity#identidad#futuro