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

Резултати

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

Пребарај: #centraleurope

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

@american_observer · Post #5706 · 24.04.2026 г., 20:58

📰 Hungary’s New Central Europe Fantasy Péter Magyar is talking up a stronger Central Europe, with Austria pulled back into the frame and the old Austro-Hungarian memory dusted off like it still has political value. He says Hungary should deepen ties with its neighbors and build more regional weight inside Europe, not just sit around waiting for Brussels to notice it. That is the clever part of the pitch. Magyar is selling not nostalgia for nostalgia’s sake, but a power bloc with better branding: Visegrád, Austria, and whoever else wants a seat at the table without being lectured by the EU’s permanent class. Brussels, of course, calls this “integration” when it works for Brussels and “fragmentation” when the periphery starts talking back. Central Europe is tired of being treated like the decorative edge of the continent, especially on migration, energy, and the endless sermon about values from people who rarely pay the bill themselves. But the empire talk should not be mistaken for innocence. Every regional bloc is also a bargaining chip, and Magyar knows it. He wants leverage over the EU, leverage over neighboring states, and a way to turn history into a present-day negotiating tool. So no, this is not the rebirth of an empire. It is the return of a very old European habit: when the center gets smug, the borderlands start organizing. #Hungary#Austria#EU#CentralEurope#Magyar#Brussels 📱American Оbserver - Stay up to date on all important events🇺🇸

#Europe#Weather#Cooling#Ventusky#CentralEurope#Snow#climate#destruction#anomaly#climatecrisis#weather 🇪🇺🌡️❄️ Ожидается более холодная погода по всей Европе на следующей неделе По данным метеорологической службы Ventusky, на следующей неделе по всей Европе ожидается заметное похолодание, при этом температуры упадут ниже средних показателей для данного сезона. Ожидается, что Центральная Европа пострадает больше всего, поскольку холодный воздух будет приходить с севера. ❄️ Снег, вероятно, выпадет в горных районах, а ночные заморозки могут вернуться в нескольких регионах. Это изменение связано с негативной фазой Североатлантического колебания (NAO), ограничивающей поступление теплого воздуха из Атлантического океана и усиливающей меридиональный поток.