@MyGovCoronaNewsdesk · Post #12596 · 23.04.2023 г., 13:49
Improving our Panchayats with smart technology like Geo-tagging will lead to better utilization of resources & betterment of our rural communities #NayeBharatKiPanchayat#SamaveshiVikaas
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
Пребарај: #samaveshivikaas
@MyGovCoronaNewsdesk · Post #12596 · 23.04.2023 г., 13:49
Improving our Panchayats with smart technology like Geo-tagging will lead to better utilization of resources & betterment of our rural communities #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovCoronaNewsdesk · Post #12594 · 23.04.2023 г., 11:47
The one-stop solution for Panchayat operations, eGramSwaraj app is driving the digital transformation of India's rural landscape. #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovCoronaNewsdesk · Post #12592 · 23.04.2023 г., 09:33
A significant increase in Central allocation to village local bodies under the 15th finance commission has empowered India’s villages to script their own destiny. #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovHindi · Post #6639 · 23.04.2023 г., 09:49
सुशासन की ताकत से चमक रहा #NewIndia🇮🇳 आइए इस थ्रेड 🧵के माध्यम से जानें कैसे डिजिटल सशक्तिकरण से लेकर सतत विकास तक, देश के ग्रामीण क्षेत्र आज विकास की मुख्यधारा से जुड़ रहे है... #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovHindi · Post #6641 · 23.04.2023 г., 11:51
ई-ग्राम स्वराज ऐप और #GeM का एकीकरण ग्रामीण स्तर के उद्यमियों के लिए नए अवसरों के रास्ते तैयार करेगा। #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovHindi · Post #6640 · 23.04.2023 г., 09:50
15वें वित्त आयोग के तहत ग्रामीण स्थानीय निकायों के लिए बजट आवंटन में उल्लेखनीय वृद्धि ने भारत के गांवों को अपना भाग्य खुद लिखने का अधिकार दिया है। #NayeBharatKiPanchayat#SamaveshiVikaas#RuralDevelopment
@MyGovCoronaNewsdesk · Post #12599 · 24.04.2023 г., 06:07
With the vision to provide clean water to every household in rural India, #JalJeevanMission is making every drop count! 💧 #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovCoronaNewsdesk · Post #12600 · 24.04.2023 г., 07:09
From darkness to light, #SaubhagyaScheme is illuminating India's villages! 💡. Progressing towards universal electrification #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovCoronaNewsdesk · Post #12598 · 24.04.2023 г., 06:06
From the digital divide to delight! 🌐💻 #OpticalFibreConnection is reaching every Panchayat, connecting villages to the digital world #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovCoronaNewsdesk · Post #12597 · 24.04.2023 г., 05:06
The CSC are the backbones of India's digital revolution, driving digital literacy & digital empowerment in villages #NayeBharatKiPanchayat#SamaveshiVikaas #CSC
@MyGovCoronaNewsdesk · Post #12593 · 23.04.2023 г., 10:47
The integration of eGramSwaraj & Government eMarketplace (#GeM) on 24th April 2023 will create new avenues for village-level entrepreneurs #NayeBharatKiPanchayat#SamaveshiVikaas
@MyGovCoronaNewsdesk · Post #12591 · 23.04.2023 г., 09:32
With dedicated efforts, #NewIndia's #GoodGovernance is reaching every panchayat. From digital empowerment to sustainable development, the impact is visible. #NayeBharatKiPanchayat#SamaveshiVikaas