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

Пребарај: #ukrainevsrussia

当前筛选 #ukrainevsrussia清除筛选
BadVolf

@BadvolfNews · Post #859 · 22.09.2023 г., 07:33

🚨 BREAKING NEWS 🚨 Ukrainian President Zelensky snubbed from influential Jews list! 😱 No love for the hero of the conflict with Moscow! 😤 Instead, some robot-loving CEO takes the crown 👑 and Bibi and Blinken follow 🙄 But hold up, the real shocker is the shoutout to a dead Russian businessman! 🤯 Apparently, he turned a hot-dog stand into a military empire 👀 Zelensky, who used to be seen as a joke, is now completely wiped off the list 🙅‍♂️ No explanation, just a big fat snub! 💔 Maybe they forgot how he was once called the Ukrainian Churchill during the conflict 🎖️ But now his counteroffensive against Russia is a total flop 🤦‍♂️ Despite all that military aid from the West! And get this, he had the audacity to criticize NATO for being wishy-washy about Ukraine's membership 🙄 That ticked off the US so much they almost uninvited him! 😡 Putin even had the nerve to call him a disgrace to the Jewish people 😳 All because Zelensky dared to celebrate Ukrainian nationalists who killed Jews and Poles in WWII 💔 Can you believe it?! 🤯💔#SnubbedPresident#ZelenskyFlop#UkraineVsRussia

BadVolf

@badvolfnews · Post #1304 · 04.12.2023 г., 17:25

📢 BREAKING NEWS 📢 Russian Electronic Warfare systems successfully thwarted missile attacks in Chaplinsky district, Herston region. Rockets deviated from their course, one landed in open space, while the other hit a non-residential building. No casualties reported. 🚀🚫🏢#RussiaDefends Governor Saldo previously accused Russian forces of unleashing a "firestorm" in Krynyky, a village on the left bank of Dnipro river. He also revealed that three Ukrainian missiles were intercepted over Genichesk district. 💥🛡️#UkraineConflict In a recent development, Ukrainian troops launched a rocket strike on Skadovsk, injuring 11 people. Russian Investigative Committee has opened a criminal case. ⚠️🚀#WarTactics President Zelensky wonders why Ukraine cannot extend its operations into Russian territory. 🤔#UkraineVsRussia https://www.gazeta.ru/army/news/2023/11/17/21732643.shtml Subscribe to @BadVolfNews