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

Пребарај: #operationalchallenges

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

@CryptoM · Post #65119 · 11.04.2026 г., 05:24

🚀 Air India Faces Operational Challenges Amid Record Losses, Says Tata Sons Chairman Air India is currently experiencing significant operational challenges and record losses, according to Tata Sons Chairman Natarajan Chandrasekaran. Bloomberg posted on X that Chandrasekaran addressed employees on Friday, highlighting the difficulties the airline is facing in its efforts to improve performance and rectify ongoing issues. The carrier is working to overcome these hurdles as it seeks to stabilize its operations and financial standing. #AirIndia#OperationalChallenges#RecordLosses#TataSons#NatarajanChandrasekaran#Bloomberg#AirlineIndustry#FinancialStruggles#BusinessNews

Crypto M - Crypto News

@CryptoM · Post #64743 · 09.04.2026 г., 17:24

🚀 Energy Giants Face Challenges Amid Rising Oil and Gas Prices Due to Iran Conflict Rising oil and gas prices resulting from the ongoing conflict in Iran might initially appear beneficial for energy companies. Bloomberg posted on X, however, that the situation is more complex due to supply disruptions, shipping blockades, and hedging losses. These factors are creating a challenging environment for energy giants, impacting their ability to capitalize on the price surge. The conflict has led to significant disruptions in the supply chain, affecting the transportation and availability of oil and gas. Additionally, shipping blockades are further complicating the situation, making it difficult for companies to maintain steady operations. Hedging losses are also a concern, as companies that had previously locked in prices at lower rates are now facing financial setbacks. As the situation unfolds, energy companies are navigating a complex landscape, balancing the potential benefits of higher prices with the operational challenges posed by the conflict. #EnergyGiants#OilPrices#GasPrices#IranConflict#SupplyDisruptions#ShippingBlockades#HedgingLosses#EnergyCompanies#FinancialSetbacks#OperationalChallenges