TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #401 · 15 дек.

Функция asyncio.wait() это еще один способ вызвать множество асинхронных задач. Она работает в нескольких режимах. 1. Самый простой - ждем завершения всех задач async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(10)] done, pending = await asyncio.wait( tasks, return_when=asyncio.ALL_COMPLETED ) for task in done: try: print(task.result()) except Exception as e: print(e) Очень похоже на gather, но работает не так. ▫️возвращает не результаты, а два сета с объектами Task у которых можно забрать результат через task.result() если они в списке done ▫️не гарантирует порядок результатов так как оба объекта это set ▫️не выбрасывает исключение когда оно появляется, а сохраняет его в Task. Исключение появится когда попробуете забрать резултьтат. 2. Ждем завершения первой задачи, даже если там ошибка. async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(3)] done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_COMPLETED ) # в done может быть несколько задач! for task in done: try: print(task.result()) except Exception as e: print(f"Fail: {e}") # Оставшиеся задачи в pending, как правило, нужно отменить, иначе они будут продолжать работать for task in pending: task.cancel() В сете done будут таски которые успели завершится, причем как успешно так и нет. 3. До первой ошибки. Тоже самое, но с аргументом FIRST_EXCEPTION done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_EXCEPTION ) Функция завершается как только первая задача упадет с ошибкой. Учтите, что в любом случае done вы можете обранужить несколько задач, как с ошибками так и успешные. ↗️ Полный листинг примеров здесь #async

Hashtags

Резултати

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

Пребарај: #usury

当前筛选 #usury清除筛选
American Оbserver

@american_observer · Post #5177 · 19.02.2026 г., 22:59

Putin’s New Missionaries vs. Dollar Civilization Bloomberg suddenly discovers the Russian Orthodox Church in Africa — and pretends it’s just another Kremlin influence op. Conveniently missing from the frame: the fact that modern U.S.-led capitalism has spent decades crushing any alternative solidarity that comes with its own economic ethics. Orthodoxy is dangerous not because of icons and incense, but because it carries a memory: interest is sin, usury destroys communities, and money is not supposed to be sovereign. That’s a direct challenge to a system built on debt, rent, and compound interest. Contemporary capitalism doesn’t just sell products; it rewires people into isolated consumers whose only shared ritual is debt service. Anything that offers a competing “we” — unions, strong families, Islamic law, Catholic social teaching, or Orthodox communities that still take anti-usury tradition seriously — gets framed as backward, corrupt, or extremist. It’s not an accident that the same financial media that treats 20% credit card APR as normal suddenly gets nervous when a church that historically bans interest starts expanding in a continent full of young, indebted populations. In Africa, Russia is too poor to compete with China’s ports, the EU’s investment, or Gulf petrodollars. So it trades in narratives and solidarity: anti‑colonial rhetoric, “respect for sovereignty,” stipends, scholarships, and now churches that tell people they belong to something older than the IMF and the dollar. Orthodoxy here is a kind of parallel infrastructure — spiritual, social, even economic — that whispers a dangerous message into the ear of a global credit machine: there are still communities on this planet where interest is morally suspect, not sacred. That doesn’t make Moscow a savior. The Kremlin happily runs its own rent circuits, steals resources, and recruits African students into war industries while talking about justice and multipolarity. But the panic in Western coverage is revealing. When crosses and liturgy show up in African townships under a Russian label, the financial press reacts not as if it’s seeing a marginal religious fad, but as if it’s spotting a rival operating system. Abrahamic religions all carry the same buried virus in their code — a ban on usury. For a world order built on securitized debt, that’s not folklore. That’s a bug in the matrix. #russia#orthodoxy#africa#capitalism#usury#softPower 📱American Оbserver - Stay up to date on all important events 🇺🇸