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

Резултати

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

Пребарај: #futureofdriving

当前筛选 #futureofdriving清除筛选
Auto Life

@revheadcrypto · Post #502 · 17.09.2024 г., 15:17

🚗💨Unveiling the Lotus Theory 1: A 1000-HP Marvel!🌟 Get ready to be amazed by the all-carbon supercar that redefines performance! With a compact length of just 4.5 meters, the Theory 1 features a unique door design that lifts up while sliding back. 🚪✨ 🔋Power & Performance: - 1000 HP💥 - 0-100 km/h in just 2.5 seconds⏱️ - Top speed exceeding 320 km/h🚀 - Equipped with a 70 kWh battery for a range of 400 km⚡ - Weighs in at an impressive 1.6 tons⚖️ #LotusTheory1#Supercar#ElectricPerformance#CarEnthusiast#Innovation#FutureOfDriving#LuxuryCars#Auto

Auto Life

@revheadcrypto · Post #453 · 06.09.2024 г., 08:22

🔋✨MG to Launch Electric Car with Solid-State Batteries Ahead of Competitors! The brand's serial models are set to feature these innovative batteries by mid-2025, as announced by SAIC Vice President Yu Jingmin. 🚗⚡️ Preliminary reports suggest that the first model equipped with this cutting-edge technology will be the production version of the recent MG Cyber GTS concept. 🌟 Solid-state batteries offer numerous advantages: reduced size and weight, increased energy density, longer lifespan across a wider temperature range, and a lower risk of ignition. 🔒🔥 #MG#ElectricCars#SolidStateBatteries#Innovation#CyberGTS#FutureOfDriving#Auto

Auto Life

@revheadcrypto · Post #643 · 19.11.2024 г., 10:12

🚗✨ Introducing the Robo X: The Ultimate Battery Supercar! 🚀💨 Get ready to experience mind-blowing acceleration with a stunning 0-100 km/h in just 1.9 seconds! ⚡️🔥 Built on a lightweight carbon and aluminum monocoque, the Robo X weighs in at just 1850 kg. With an impressive estimated range of 650 km, this supercar is designed for both speed and endurance! 🌍🔋 Want to be among the first to own this revolutionary vehicle? Pre-order now with a deposit of 49,999 yuan (approximately 700,000 rubles)! 💰🛒 Production is set to kick off in 2027, so don't miss your chance to be part of the future of automotive innovation! 🏎️💨 #RoboX#Geely#Baidu#Supercar#ElectricVehicle#FutureOfDriving#Innovation#PreOrderNow#Auto