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

Резултати

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

Пребарај: #navalmines

当前筛选 #navalmines清除筛选
Crypto M - Crypto News

@CryptoM · Post #64462 · 09.04.2026 г., 01:14

🚀 Iran Warns of Naval Mines in Strait of Hormuz Amid Ongoing Conflict On April 9, the Iranian Revolutionary Guard Corps Navy issued a statement warning of potential anti-ship mines in the main traffic areas of the Strait of Hormuz due to recent conflicts. According to BlockBeats, vessels planning to navigate through the strait are advised to coordinate with the Revolutionary Guard Navy and follow an alternative route to avoid mines. The provided map indicates that the alternative route requires ships to enter and exit the Persian Gulf from the north and south sides of Larak Island in the northern part of the strait. On April 8, the Iranian Ports and Maritime Organization released a safety navigation map for the Strait of Hormuz, advising vessels to adhere to shipping safety principles to avoid mines. The organization stated that from February 28 to April 8, there have been ongoing conflicts in the Persian Gulf and the Strait of Hormuz, with potential anti-ship mines present in the main channel of the strait. #Iran#StraitOfHormuz#NavalMines#RevolutionaryGuard#PersianGulf#ShippingSafety#AntiShipMines#Conflict#MaritimeSafety