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

Резултати

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

Пребарај: #rem

当前筛选 #rem清除筛选
Re:Pics

@re_pics · Post #8244 · 01.04.2024 г., 00:18

━━━━━━━━🔮🔮━━━━━━━ #wallpaper#Rem 🔰ᐈCharacter: Rem 🔰ᐈSource: Re:Zero 『 @Re_pics 』 ━━━━━━━━🔰🔰━━━━━━━━

Re:Pics

@re_pics · Post #8242 · 01.04.2024 г., 00:18

━━━━━━━━🔮🔮━━━━━━━ #wallpaper#Rem 🔰ᐈCharacter: Rem 🔰ᐈSource: Re:Zero 『 @Re_pics 』 ━━━━━━━━🔰🔰━━━━━━━━

Re:Pics

@re_pics · Post #8240 · 01.04.2024 г., 00:18

━━━━━━━━🔮🔮━━━━━━━ #wallpaper#Rem 🔰ᐈCharacter: Rem 🔰ᐈSource: Re:Zero 『 @Re_pics 』 ━━━━━━━━🔰🔰━━━━━━━━

🌏Almost 600 participants from 19 countries have registered for the RAREMET-2026 Congress We are publishing the latest information about registration for the International Congress on Rare Metals, Materials and Technologies, which will be held in Moscow from May 20 to 22. 📊Participants from 19 countries worldwide: Russia, India, China, Kazakhstan, Republic of Korea, Mongolia, Cuba, Egypt, Belarus, Tajikistan, Uzbekistan, Pakistan, Vietnam, Bangladesh, Armenia, Iran, Malaysia, Singapore, South Africa. The largest delegation is from India. 🎓High scientific status: – 3 academicians and 11 corresponding members of the Russian Academy of Sciences - more than 50 professors, 64 doctors of sciences, 133 candidates of sciences 👩‍🔬Support for young researchers: – more than 220 young scientists under the age of 35 📌The Congress includes four thematic conferences (RAREMET:Minerals, RAREMET:Metallurgy, RAREMET:Chemistry, RAREMET:Functional), round tables, as well as an expert session on fire and explosion safety 🏭 The RAREMET:Expo exhibition will be held as part of the Congress, intergovernmental meetings (G2G) and a press-conference are also planned. 📖 The full text of the news is available on the Congress website. 🗓 RAREMET-2026 will be held on May 20-22 in Moscow at the RTU MIREA. The organizer is Giredmet JSC. 🌐 Website of the Congress: redmet.giredmet.ru 📱MAX: max.ru/id7707072637_gos22 See you at the key forum of the rare metal industry! #RAREMET2026#RAREMET2026#RareMetals#REM#technologicalsovereignty#RAREMETExpo

12
ПретходнаСтраница 1 од 2Следна