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 слични објави

Пребарај: #primeminister

当前筛选 #primeminister清除筛选
MessageInABottle

@mib_messageinabottle · Post #7072 · 08.08.2024 г., 23:31

#AI generated #UK#PrimeMinister Keir #Starmer video. It is basically what he has demonstrated and stated, even if not in these exact words. It's clear if you are white working class in the #UK you do not have any meaningful right of protest, be angry, demonstrate or have an opinion. Whoever made this has just translated #Starmer's bullshit into what he really means when he talks about "#FarRight thugs"

MessageInABottle

@mib_messageinabottle · Post #7073 · 08.08.2024 г., 23:57

Compare and contrast #UK#PrimeMinister#Starmer's reaction to: • "firey but mostly peaceful" #BLM riots in the US after the death of petty criminal drug-addict George Floyd Vs •#White Working class "Anti-#Stabbing" riots in the #UK after the #murder of 3 #children

Crypto M - Crypto News

@CryptoM · Post #64747 · 09.04.2026 г., 17:47

🚀 UK Prime Minister Criticizes Trump's Rhetoric on Iran UK Prime Minister Keir Starmer has expressed disapproval of U.S. President Donald Trump's recent comments threatening to destroy Iran. Bloomberg posted on X, highlighting Starmer's assertion that such rhetoric does not align with British values. The Prime Minister emphasized the importance of diplomatic approaches and maintaining international peace, suggesting that aggressive language could undermine efforts to resolve tensions. Starmer's remarks come amid ongoing global discussions about Iran's nuclear activities and regional stability. The UK government continues to advocate for dialogue and cooperation in addressing international security concerns. #UK#PrimeMinister#KeirStarmer#Trump#Iran#Diplomacy#InternationalRelations#Peace#GlobalSecurity#NuclearActivities