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

Пребарај: #companies

当前筛选 #companies清除筛选
Bali News

@balinews · Post #261 · 12.12.2024 г., 13:45

🏭Manufacturer of Smirnoff, Captain Morgan and Guiness expands production in Bali 📰 One of the world's largest producers of alcoholic beverages, the British company Diageo, is expanding its production in Bali. 8,800 m² of production capacity will be added to the existing factory in the Tabanan area. 🗺 Diageo is the owner of such global brands as Captain Morgan rum, Johnnie Walker whisky, Smirnoff vodka and Guinness beer. The company is betting on increasing sales not only in Indonesia but in the entire Southeast Asian region. ↗️ The factory has been operating in Bali since 2014, and products have been exported to other Southeast Asian countries since 2021. According to Diageo representatives, this region accounts for 19% of total sales. 🎯 The company has big plans for the renovated plant. Bali's strategic location makes it a convenient center for a production hub not only for Southeast Asia, but also for the entire Asia-Pacific region. @BaliNews #companies#business

Venture Village Wall 🦄

@venturevillagewall · Post #4320 · 06.03.2025 г., 10:00

Tether Freezes Garantex USDT Accounts ⚠️ Tether has frozen Garantex's USDT accounts worth over 2.5 billion rubles, forcing the exchange to suspend all services, including crypto withdrawals. Read more: hashtelegraph.com 💵 In other news, OpenAI plans to charge up to $20,000 per month for specialized AI agents aimed at various sectors. Details: forklog.com 💰 The global venture capital funding dropped to $19 billion in February, with AI startups receiving 30% of investments. Source: Crunchbase #Tether#Garantex#USDT#AI#Crypto#VC#Solana#Cardano#Canoo#companies#startups#funding#blockchain#fintech#venturecapital#innovation#technology#analytics#automotive#delivery#robotics