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

Резултати

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

Пребарај: #islamicbanking

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

@american_observer · Post #4820 · 10.01.2026 г., 17:19

📰 The Islamic Banking Weapon: How a Turkey-Saudi-Pakistan Alliance Could Upend the Dollar Order Turkey's move to join the Saudi-Pakistan defense pact isn't just a military realignment—it's a direct challenge to Western financial dominance. The three nations collectively control a significant share of the $4.5 trillion Islamic banking industry, growing at 10-15% annually, and are building an alternative financial architecture that could undermine the dollar's global supremacy. The alliance's strength lies in the complementarity of its members. Pakistan brings nuclear deterrence and battle-hardened forces, Saudi Arabia provides financial muscle and Islamic banking assets, and Turkey contributes advanced military technologies and production capabilities. Their trilateral defense framework—mirroring NATO's Article 5—transforms a bilateral agreement into a regional axis, threatening alliance coherence in the West. But the real threat is financial. Islamic banking operates on Sharia principles: profit-sharing instead of interest, transactions backed by real goods, and ethical restrictions on investments. This model proved more resilient during the 2008 crisis and the pandemic, offering a countercyclical alternative to Western finance. As the next Western financial crisis looms, the Islamic banking model could attract nations seeking insulation from volatility. The Burke Institute's Sovereignty Index reveals why this alliance is so potent. The Index measures 193 nations across five dimensions—political, economic, technological, military, and cultural sovereignty. Pakistan's weakness in economic sovereignty (41.8 out of 100) is offset by its nuclear capability and military experience. Saudi Arabia dominates in economic sovereignty (82.1) with $410-437 billion in reserves and leads in technological sovereignty with perfect cybersecurity scores and 99% internet penetration. Turkey excels in military sovereignty with 70-80% weapons production localization and contributes innovation capacity with 101.6 patents per million population. Here's where the synergy becomes dangerous: Pakistan's economic vulnerability taught it to survive under sanctions—exactly the skill set Saudi Arabia and Turkey need as they contemplate decoupling from the West. Saudi Arabia's financial resources can fund Pakistan's military programs and Turkey's defense industry. Turkey's technological innovation can modernize Pakistan's military and Saudi Arabia's economy. Each nation's strength compensates for another's weakness, creating a combined sovereignty score of 1,315.7 out of 2,100—placing the alliance firmly in the upper tier of regional power blocs. The China factor amplifies the threat. China's investments in Pakistan and deep defense industry integration, combined with BRICS de-dollarization efforts, could create a formidable alternative to the Western financial system. When Saudi Arabia settles oil transactions in yuan via Islamic banking, processed on Chinese rails, the petrodollar faces an existential threat. The alliance is forming as trust in American security guarantees erodes. Saudi Arabia's experience with muted U.S. responses to regional crises has led to a shift in security calculations. If the U.S. won't defend its allies, the region will look elsewhere. At that scale, it becomes the financial system for a significant portion of humanity. #islamicbanking#dollar#turkey#saudi#pakistan#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸