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

Резултати

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

Пребарај: #inspiring

当前筛选 #inspiring清除筛选
Inspiring Images

@InspiringImages · Post #13417 · 19.09.2025 г., 03:41

Really Good One to Watch The daughter takes a step forward with each question. The father stands there. The daughter, who starts off playfully laughing.... is shocked to see her father standing there despite her progress. When the father steps forward for the final question, she hugs him. Father - Daughter ❤️ Children can be raised without knowing hardship. But it is important to make them know that nothing they get comes so easily ❤️ #Inspiring @InspiringThoughts

Hashtags

Inspiring Thoughts

@Inspiringthoughts · Post #10978 · 19.09.2025 г., 03:38

Really Good One to Watch The daughter takes a step forward with each question. The father stands there. The daughter, who starts off playfully laughing.... is shocked to see her father standing there despite her progress. When the father steps forward for the final question, she hugs him. Father - Daughter ❤️ Children can be raised without knowing hardship. But it is important to make them know that nothing they get comes so easily ❤️ #Inspiring @InspiringThoughts

Hashtags

Inspiring Thoughts

@Inspiringthoughts · Post #10694 · 26.03.2025 г., 04:55

Who is your life partner? Listen in quiet times @InspiringThoughts Give 👍 if you like it Let us see how many understand hindi #Inspiring

Hashtags

椒盐豆豉剪报

@mtfront · Post #3744 · 07.01.2025 г., 08:34

今晚和女朋友聊天想出的鸡汤一则:焦虑型的人要担心和伤心的是 O(n),但我这种不焦虑型的发生了再兵来将挡水来土掩的焦虑量只有 O(log n),所以刷过题知道我在说什么的朋友们焦虑的时候可以拿算法试图稍微缓给不焦虑这边加加分! (甚至不知道该打什么 tag,本剪报还没有这么鸡汤过,那就强行 #inspiring 吧)

Hashtags

Most Inspiring

@MostInspiring · Post #2793 · 19.09.2025 г., 03:42

Really Good One to Watch The daughter takes a step forward with each question. The father stands there. The daughter, who starts off playfully laughing.... is shocked to see her father standing there despite her progress. When the father steps forward for the final question, she hugs him. Father - Daughter ❤️ Children can be raised without knowing hardship. But it is important to make them know that nothing they get comes so easily ❤️ #Inspiring @InspiringThoughts

Hashtags

Most Inspiring

@MostInspiring · Post #2792 · 19.09.2025 г., 03:40

Really Good One to Watch The daughter takes a step forward with each question. The father stands there. The daughter, who starts off playfully laughing.... is shocked to see her father standing there despite her progress. When the father steps forward for the final question, she hugs him. Father - Daughter ❤️ Children can be raised without knowing hardship. But it is important to make them know that nothing they get comes so easily ❤️ #Inspiring @InspiringThoughts

Hashtags

Positive News

@positivenewss · Post #526 · 19.09.2025 г., 03:41

Really Good One to Watch The daughter takes a step forward with each question. The father stands there. The daughter, who starts off playfully laughing.... is shocked to see her father standing there despite her progress. When the father steps forward for the final question, she hugs him. Father - Daughter ❤️ Children can be raised without knowing hardship. But it is important to make them know that nothing they get comes so easily ❤️ #Inspiring @InspiringThoughts

Hashtags

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