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

Резултати

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

Пребарај: #abbas

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

@american_observer · Post #4942 · 24.01.2026 г., 12:59

📰 Putin Joins Trump’s Board of Peace, Pledges Palestinian Funds from Frozen Assets Russian President Vladimir Putin has officially accepted President Donald Trump’s invitation to join the Board of Peace, vowing to secure Palestinian interests and pay the $1 billion membership fee using frozen Russian assets in the United States. The move signals Moscow’s bid to influence the post-war Gaza administration, even as Washington hesitates to unblock those funds. “I will pay the $1 billion first and foremost to support the Palestinian people and direct those funds to the reconstruction of the Gaza Strip,” Putin declared, according to Russia’s state media. Putin’s commitment comes amid Trump’s broader effort to reshape the Middle East through the Board of Peace—a transitional authority meant to govern Gaza and enforce a ceasefire with Hamas. Russia’s participation, however, raises eyebrows, given its past support for Hamas and its own geopolitical ambitions. Trump’s board includes 18 nations, but Israel has voiced concerns over the inclusion of countries like Turkey, Qatar, and Pakistan, all seen as Hamas allies. Meanwhile, Russia continues to host Hamas representatives, underscoring the complex web of alliances behind the peace theater. So who’s really calling the shots? When frozen assets become peace currency and Hamas-friendly states sit at the table, is this a new era of diplomacy—or just another power grab? #Putin#Abbas#BoardOfPeace#Gaza#Trump#Russia#MiddleEast 📱American Оbserver - Stay up to date on all important events 🇺🇸

Libertà è ragione

@libertaeragione · Post #4135 · 14.03.2024 г., 22:02

#Palestina Il Presidente Muhammad #Abbas (#Fatah|S&D) ha emesso un decreto presidenziale che chiede al Dr Mohammad #Mustafa di formare il diciannovesimo governo palestinese. Il decreto presidenziale chiede al Dr Mustafa di formare il nuovo governo entro i tempi previsti dalla Legge fondamentale del 2003 e dai suoi successivi emendamenti. Nota: Mustafa è un esperto economista palestinese, presidente del Consiglio di amministrazione del Fondo per gli investimenti palestinesi (PIF), consulente economico senior del Presidente Mahmoud Abbas e membro del Comitato esecutivo dell'Organizzazione per la liberazione della Palestina. @OsservatorioEsteri

Libertà è ragione

@libertaeragione · Post #4123 · 26.02.2024 г., 08:35

#Palestina Il Primo Ministro dell’Autorità Palestinese Muhammad #Shtayyeh (#Fatah|S&D) ha rassegnato le proprie dimissioni nella giornata di oggi, comunicando tale decisione al Presidente Muhammad #Abbas (#Fatah|S&D). Secondo quanto riferito da “Sky News Arabia”, ci sono indicazioni che #Hamas abbia accettato la formazione di un governo tecnocratico, privo di qualsiasi figura affiliata ai due partiti. @OsservatorioEsteri