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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #199 · 8 јан.

Многие из тех кто активно работал с Python2 несколько удивлены, почему в Python3 удобная функция reload() переехала из builtin в imp а потом и в importlib? Ну было же удобно! А теперь лишний импорт😖 Дело в том, что начиная с Python3.3 функция reload() переписана на Python вместо Cи. Что это нам даёт? 🔸 Такой код проще поддерживать и развивать 🔸 Python код легче читать, изучать и понимать. Сравните это ➡️ и это ➡️. 🔸 Как результат пункта 2, проще писать свои расширения импорта. Например, пользовательский импортёр с какой-либо хитрой логикой по аналогии с импортом из zip архивов. А есть ли у этого решения недостатки? Да, они всегда есть. 🔹 Так как это не builtin функция, её следует импортнуть перед использованием 🔹 Скорость замедлилась примерно на 5%. Очевидно, что это совершенно не критично. К тому же от версии к версии логика импорта будет оптимизироваться и ускоряться. В самом начале файла importlib/__init__.py мы видим такой импорт: import _imp # Just the builtin component, NOT the full Python module То есть часть функционала по прежнему написана на Си, но достаточно низкоуровневая. #basic

Hashtags

Резултати

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

Пребарај: #highstakes

当前筛选 #highstakes清除筛选
Crypto M - Crypto News

@CryptoM · Post #65155 · 11.04.2026 г., 13:17

🚀 U.S.–Iran Discussions Begin as Vice President Vance Leads Talks in Islamabad Key Takeaways JD Vance is leading high-stakes talks with Iran in Islamabad.Negotiations aim to stabilize the ceasefire and end the conflict.Talks are indirect and mediated by Pakistan amid deep mistrust.Key issues include Strait of Hormuz, sanctions, and nuclear program. Talks Officially Underway Discussions involving the United States and Iran have officially begun in Islamabad, with JD Vance heading the US delegation. The negotiations are part of a broader effort to extend a fragile ceasefire and potentially move toward a longer-term resolution of the conflict. Pakistan Acting as Mediator The talks are being hosted and mediated by Pakistan, which has played a central role in facilitating communication between both sides. Meetings are taking place under tight security conditionsDelegations are engaging through indirect channels, though direct talks may occurPakistani officials are coordinating between both sides to push toward progress High-Stakes Agenda Key topics under discussion include: Reopening the Strait of Hormuz (critical for global oil supply)Potential sanctions relief for IranLimits on Iran’s nuclear programBroader regional stability and ceasefire enforcement Tensions and Mistrust Remain High Despite the start of talks, major disagreements persist: Iran has set conditions, including halting certain military actionsThe US has maintained a firm stance and warned against delaysBoth sides remain cautious, reflecting deep geopolitical mistrust #USIranTalks#JDVance#Islamabad#PakistanMediating#Ceasefire#StraitOfHormuz#Sanctions#NuclearProgram#RegionalStability#GeopoliticalTensions#DiplomaticNegotiations#HighStakes