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

Резултати

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

Пребарај: #apartment

当前筛选 #apartment清除筛选

ማስታወቂያ አስደሳች ዜና - የህልም ቤትዎን በአፍሪካ መዲና በአፍሪካ ህብረት እና ቻይና ኮሚሽን አጠገብ ቡልጋሪያ ሳይት ለመግዛት አስበው ያውቃሉ?? ​በመሃል ከተማ ቡልጋሪያ አዲስ የቤት ሽያጭ ጀምረናል። ጥራት፣ ምቾት እና ታላቅ ቅናሽ ይጠብቀዎታል. ❇️ compound አፓርትመንት (ግቢ ቤት ) ❇️ ከ ባለ አንድ እስከ ባለ ሶስት መኝታ በተለያየ የካሬ አማራጭ ❇️ 20% ቅድመ ክፍያ ብቻ ሌላውን ቀስ ብለው በ 14 ዙር ❇️ እንዲሁም በመሃል ፒያሳ በ አንድ ዓመት ምናስረክበው የ ንግድ ሱቅ ሽያጭ አለን ​ለምን የእኛን ቤቶች ይመርጣሉ? ​✅ አስተማማኝ የግንባታ ጥራት ✅ ምንም አይነት ዋጋ ጭማሪ የለም ✅ መሃል ከተማ ተመጣጣኝ ዋጋ ✅ አስተማማኝ finance project ✅ ለትራንስፖርት እና ለገበያ ምቹ ቦታ ✅ አስገራሚ የ30% የቅናሽ አማራጭ ​📞 አሁኑኑ ይደውሉልን 📱 0908770077 / 0910798353 What'sapp : Https://Wa.me/+251910798353?text #realestate#apartment#Temerrealestate#investment

NIDO Russia (НИДО)

@nido_russia · Post #1871 · 13.11.2024 г., 16:08

Supreme Court's decisions on Community/Estate Associations issue. Case Law: In the case of FAMAKINWA & ORS V. ODOFIN OLOJA ESTATE RESIDENTS ASSOCIATION & ORS (2016) LPELR-41066(SC), the Court ruled: 1. Residents are bound by rules of the estate association, even if they are not members. 2. Estate associations can make management & maintenance rules for the estate. 3. These rules are enforceable on all residents. The decision was on the following grounds: 1. Purchasing/renting property within the estate, implies consent to abide by the estate's rules. 2. Residents have a vested interest in maintaining the estate's amenities and services. 3. Allowing non-members to disregard estate rules would undermine the association's ability to maintain order & manage the estate effectively. The court also stressed that: 1. Estate association rules must be reasonable & not arbitrary or oppressive. 2. Residents must be given fair notice & opportunity to be heard before sanctions or penalties are imposed. https://t.me/nido_russia/1871 #realestate#tenancy#landlord#tenant#apartment#flat