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

Резултати

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

Пребарај: #russianclasses

当前筛选 #russianclasses清除筛选
Russian House Brussels-Europe

@rushousebrussels · Post #2116 · 02.10.2024 г., 06:32

Today we continue the topic of confusing emphases! You can find the previous post here. ❓And, as per our tradition, I have a question: What word pairs confused you the most when speaking Russian? Share your stories in the comments! 📸: Pavel Kuzmichev, OZ_Media, Lucy Lambriex, LauriPatterson, bymuratdeniz, David Wall, Westend61, Mariha-kitchen, stocknshares/Getty Images #russianclasses 🔔Russia Beyond

Russian House Brussels-Europe

@rushousebrussels · Post #2103 · 18.09.2024 г., 09:11

Let's learn the diminutive forms for animal names! тигр -> тигрёнок медведь -> медвежонок слон -> слонёнок курица -> цыплёнок лошадь -> жеребёнок ❓Would you like to have any of these as a pet? :) P.S. Catch more of my lessons on YouTube! #russianclasses

Russian House Brussels-Europe

@rushousebrussels · Post #2100 · 10.09.2024 г., 07:54

Привет! We already made blini and kvass - time for okroshka! You’ll find the exact amounts of the ingredients to use here. ❓Have you tried okroshka? And what would you like to cook for next time? 📷: Maria Afonina; Yulia Gusterina/Getty Images #russianclasses 🔔Russia Beyond

Привет, салют и здравствуйте! Today we'll learn 5 Russian greetings. Formal ones: 🇷🇺Здравствуйте! 🇬🇧Hello! 🇷🇺Приветствую! 🇬🇧Greetings! Informal: 🇷🇺Привет! 🇬🇧Hi! 🇷🇺Салют! 🇬🇧Salutations! (Literally: "firework!") Very informal and conversational: 🇷🇺Здорово! (pronounced as ‘здарова!’) 🇬🇧Hey/What's up! ❓Do you know other (unusual) Russian greetings? Drop them in the comments! P.s. watch more videos here! #russianclasses 🔔Russia Beyond

Russian House Brussels-Europe

@rushousebrussels · Post #2085 · 27.08.2024 г., 13:19

🔊Sound on ☕ please, repeat Привет! Tired of learning Russian? Great news for you today then: we have thousands of words that are similar to English ones! Let’s start with those relating to food! Notice that the pronunciation is not always similar, so watch out for those accents! Still, learning Russian versions of the words you already know is far easier than learning absolutely new ones 🙂 That’s not the end of the list! Do you have any more examples? Drop them down in the comments! 👇🏼 Credits: Westend61, Aleksandr Kuzmin, Martin Barraud, serggn, Chris Stein, Halfdark/Getty Images Sourse: Russia Beyond https://t.me/russiabeyond/8927 #russianclasses#russianbeyond#РусскийДом#RussianHouse#Образование#КРЯ#brussels#belgium#educationrussia#RussianHouseBrussels#russianlanguagecoursesbrussels#russianlanguage#learnrussian#studyrussian