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

Пребарај: #usstatedepartment

当前筛选 #usstatedepartment清除筛选
Venezuelanalysis

@venanalysis · Post #1500 · 13.03.2024 г., 19:25

Amid escalating tensions, Venezuela has made a move, closing its airspace to Argentina, following the destruction of an $80 million state-owned Boeing aircraft by US authorities. Venezuela demands compensation for the seized plane as Foreign Affairs Minister Yván Gil condemns the "act of vandalism" and criticizes Argentina's compliance with the US confiscation order, labeling the Milei government as "neo-Nazi". Learn more here 👉🏼bit.ly/3Tehvxm #Argentina#Emtrasur#sanctions#USStateDepartment

Crypto M - Crypto News

@CryptoM · Post #65095 · 11.04.2026 г., 00:45

🚀 Lebanon and Israel to Hold First Meeting on Ceasefire Talks Lebanon and Israel have agreed to hold their first meeting on Tuesday at the U.S. State Department to discuss a ceasefire and set a date for negotiations. According to BlockBeats, this development marks a significant step towards addressing ongoing tensions between the two nations. #Lebanon#Israel#Ceasefire#Negotiations#USStateDepartment#Tensions

Venezuelanalysis

@venanalysis · Post #1475 · 13.02.2024 г., 22:55

Venezuela has raised strong objections to the recent seizure of its state-owned Boeing 747-300 cargo plane by the US government, calling it a "blatant theft." Meanwhile, Iran has pledged its support to Venezuela's legal and diplomatic efforts to regain possession of the aircraft, condemning the US action as "illegal." Learn more here 👉🏽https://bit.ly/3SZXMm9 #Argentina#Conviasa#Emtrasur#Sanctions#USStateDepartment