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

Резултати

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

Пребарај: #fdv

当前筛选 #fdv清除筛选
Crypto M - Crypto News

@CryptoM · Post #65419 · 13.04.2026 г., 06:34

🚀 Polymarket Predicts High Valuation for Genius Launch Polymarket has forecasted a high valuation for the launch of Genius, with a 99% probability that its fully diluted valuation (FDV) will exceed $20 million on the day following its debut. According to Foresight News, the market also predicts a 97% chance of the FDV surpassing $50 million and a 96% chance of it exceeding $80 million. Currently, the trading volume in this prediction market has surpassed $900,000. #Polymarket#GeniusLaunch#ValuationPrediction#FDV#TradingVolume#Cryptocurrency#MarketForecast

Crypto M - Crypto News

@CryptoM · Post #64789 · 10.04.2026 г., 00:04

🚀 OneFootball Club Token Faces Decline in Market Valuation The probability of OneFootball Club's fully diluted valuation (FDV) exceeding $50 million on Polymarket has dropped to 14%, marking a 51% decrease over 24 hours. According to Odaily, this decline follows the announcement made yesterday afternoon on the X platform that OneFootball Club's token, OFC, has officially launched with a current market valuation of $45 million. #OneFootball#Token#MarketValuation#FDV#Polymarket#Crypto#OFC#Web3#Blockchain#CryptoMarket#PriceDrop#ValuationDecline

Orizzonti Politici

@OrizzontiPolitici · Post #45 · 23.04.2019 г., 12:46

#Italia#Europee Sono 16 i partiti ammessi alle elezioni europee, nessuna ha dovuto raccogliere le 150.000 firme necessarie, vediamoli insieme: -#M5S -#PD-#A1MDP-#DemoS -#Lega-#MNS -#FI (Insieme a #UdC-#MpA-#IDeA-#CP-#NPSI-#EpI-#RC-#PLI) -#FdI (Insieme a #DI-#DiventeràBellissima) -#LS (#SI-#PRC-#AET-#ÉViva) -#EV (#FdV-#Possibile) -#PiùE-#IiC (Insieme a #PSI-#PRI) -#PdF-#AP I partiti sottostanti sono stati ammessi anche senza avere né rappresentanza in parlamento né senza aver raccolto firme -#PC (Partito Comunista) -#CPI-#DU (CasaPound-Destre Unite) -#FN (Forza Nuova) -#PPI (Popolari Per l'Italia) -#PPIT (Partito Pirata) -#PAI (Partito Animalista Italiano) -#PPA (Popolo Partite IVA) Nelle tre regioni #ValleDAosta, #TrentinoAltoAdige e in #FVG troviamo diverse alleanze: -#ApE con il PD (#UV-#UVP-#ALPE-#EPAV-#SA) -#SVP-#PATT e #SSk con FI -#LAltoAdigeNelCuore con FdI -#VGV con #EV -#TK con #PiùE @NewsDalMondoo