@Wallpaper_INT · Post #46177 · 03.05.2025 г., 04:30
#Girl#Mask#Symbols#8K @Wallpaper_INT
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
Пребарај: #symbols
@Wallpaper_INT · Post #46177 · 03.05.2025 г., 04:30
#Girl#Mask#Symbols#8K @Wallpaper_INT
@amazingeo · Post #452 · 13.11.2025 г., 20:31
🌍 The only country whose official flag features a full map is Cyprus. The flag shows the island’s outline in gold above two green olive branches, symbolizing peace and unity. ✨ #cartography⚡#maps⚡#symbols⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@googlefactss · Post #40514 · 09.01.2026 г., 23:03
Tying a knot in a handkerchief helps people remember things, like using symbols. Both work because they connect to what someone does in real life. 🧠🤧 [Read more] What do you do or use to remember things? @googlefactss#MemoryHelp#Symbols#MindFacts
Hashtags
@googlefactss · Post #40564 · 21.01.2026 г., 05:01
The flag of Quebec is blue with a white cross and four white fleur-de-lis. It was officially adopted on January 21, 1948. The blue means the sky, the white cross means faith, and the fleur-de-lis are old French symbols. The flag is a reference to Quebec’s French history and culture. 🇨🇦✝️⚜️ [Read more] @googlefactss#Quebec#Flag#History#Symbols
@redfoxuz · Post #1297 · 20.10.2020 г., 20:37
Tipografika: 2-qism Tipografika boʻyicha qisqa eslatmalar. #typography#basics#time#values#notes#symbols#digits#numbers#names Instagram • Dribbble • YouTube • Telegram