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

TGINSIGHT SIMILAR POSTS

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

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

Как разделить строку с shell-командой на отдельные аргументы в виде списка? Если сделать просто сплит по пробелу то получим то что надо, кроме случаев со вставками текста с пробелами. Например так: >>> '-arg "I Am Groot"'.split(' ') ['-arg', '"I', 'Am', 'Groot"'] Чтобы учитывать текст в кавычках как единый аргумент можно воспользоваться функцией shlex.split() Кто читает мой канал давно, уже в курсе. А что делать, если нужно обратное действие? Объединить аргументы из списка в строку и при этом добавить кавычки в аргумент с пробелами. Конечно, если вы используете subprocess то он сам всё разрулит. Но если вам нужна именно команда одной строкой, то можно воспользоваться готовой функцией в том же subprocess. >>> from subprocess import list2cmdline >>> list2cmdline(['-arg', 'I Am Groot']) '-arg "I Am Groot"' Он также позаботится об экранировании уже имеющихся кавычек >>> list2cmdline(['-arg', 'I Am "Groot"']) '-arg "I Am \"Groot\""' А вот так он может "схлопнуть" в команду JSON >>> list2cmdline(['--json', json.dumps({'key': 'value'})]) '--json "{\"key\": \"value\"}"' _______________ Возможно кто-то спросит, а зачем соединять аргументы в строку если subprocess сам это сделает а os.system не наш путь? Мне как-то потребовалось отправлять команду на удалённое выполнение и в API поддерживалось указание команды только строкой. Так что всякое бывает) #libs#basic

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 🇺🇸