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 слични објави

Пребарај: #accounts

当前筛选 #accounts清除筛选
Graph Messenger

@graphmessenger · Post #510 · 25.03.2026 г., 12:11

👤Hidden Accounts: Your Private Space Securely hide your sensitive accounts within the app. Access them anytime with a password for ultimate privacy and control. A pin, password, or pattern can be used to lock it, and a fingerprint can also be used to unlock it. 💡How to enable it? 00:00 ✍️How can I hide an account? 00:22 ⁉️What is the process for accessing hidden accounts? 00:30 ❤️Redesigned In version 12.5.1.0 on March 20, 2026. 🗓Was added in version 6.7 on November 29, 2018. #features#accounts#hidden_accounts#hidden#graph_messenger#telegram @GraphMessenger @GraphMessengerTips

Daily Channels

@dailychannels · Post #6560 · 21.12.2025 г., 13:00

Channel: Instagram Accounts & Services Members: ~3.49K 💢 Username: @buyinstaaccounts Description: We Sell Instagram Accounts, Followers, Likes, Views, Commmets Or Any Other Service Regarding Instagram. With 8 Years Of Experience. 🏷 Tags: #games_apps #instagram#accounts#social_media#followers#engagement https://telegramchannels.me/channels/buyinstaaccounts

djangoproject

@djangoproject · Post #441 · 13.09.2017 г., 14:56

User authentication in #Django Django comes with a user authentication system. It handles user #accounts, #groups, #permissions and #cookie-based user #sessions. This section of the documentation explains how the default implementation works out of the box, as well as how to extend and customize it to suit your project’s needs. https://docs.djangoproject.com/es/1.11/topics/auth/

Graph Messenger

@graphmessenger · Post #516 · 17.04.2026 г., 09:04

Effortless Navigation: Access Accounts & Quick Links with a Simple Swipe Up This swipe-up functionality is designed for maximum convenience, putting your most important options right at your fingertips. ❤️Graph Messenger 12.5.1.2 🗓Added from: April 4, 2026 #features#menu#quick_links#accounts#swipe#graph_messenger#telegram @GraphMessenger @GraphMessengerTips