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

Пребарај: #aid

当前筛选 #aid清除筛选
Red Nile

@rednile12 · Post #11264 · 15.03.2026 г., 14:09

🇵🇸Newly released footage shared by a British recruit who served at aid distribution sites run by the #Gaza Humanitarian Foundation exposes the aid system designed by Israel in cooperation with the United States to humiliate Palestinians. Nearly 2,000 Palestinians were killed at the foundation’s distribution points in incidents that included shooting “for fun,” according to the recruit. @EuroMedHR #Genocide#Aid#GHF#Starvation#Famine#US#Palestine

MessageInABottle

@mib_messageinabottle · Post #6796 · 16.05.2024 г., 14:15

ZioNazi*** #Israeli"settlers"evil colonists are allowed by the #ZioNazi Israeli Government to destroy desperately needed humanitarian #aid coming from #Jordan to #Gaza. These sicko “civilians” are destroying vital food aid to a #starving population, which is literally facing famine conditions which have been created by the actions of those very same #ZioNazis, and all while literally laughing about it and obviously having fun. Getting the settlers to destroy the aid is a very evil and dishonest way for the #Zionist Israeli Government to deny aid to #Gaza while pretending to the International community that they are doing all they can to allow it in. --------- *** Anyone wondering why I usually refer to Zionists as "ZioNazis" ...... ........ well, now you know why!