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

Пребарај: #countach

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

@revheadcrypto · Post #486 · 13.09.2024 г., 04:15

🚗💨Rare Lamborghini Countach LPI 800-4 Up for Auction!🌟 A stunning Lamborghini Countach LPI 800-4 is currently on the auction block at Bring a Trailer, with bids already reaching an impressive $2,222,222! 💰✨ This modern masterpiece, celebrating the 50th anniversary of the iconic Countach, is based on the hybrid Sian platform. Only 112 units were planned for production, making this supercar an ultra-exclusive collector's item! 🎉🔑 With just 137 kilometers on the odometer, this beauty is practically brand new! The first owner acquired it in February last year for a whopping $2.8 million. 🚀🔥 #Lamborghini#Countach#Supercar#Auction#BringATrailer#LuxuryCars#CarCollectors#Auto🚘🌍

Auto Life

@revheadcrypto · Post #77 · 11.07.2024 г., 08:24

🏎 Get your hands on a piece of history! 🌟 Rare Lamborghini Countach LP400 up for auction! Previously owned by musician Rod Stewart. Only around 150 LP400 Countach models were ever produced by Lamborghini, featuring a 3.9-liter V12 engine with 370 horsepower. Rod Stewart was the proud first owner of this incredible car, purchasing it in Australia during his tours and then bringing it back to the UK. 💲 Price: $520,000 💲 ⏳ Only one day left until the end of the auction! ⏳ #Lamborghini#Countach#LP400#RodStewart#RareCar#MusicianOwned#Auction#DreamCar#MuscleCar#Legendary#CollectorCar