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

Резултати

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

Пребарај: #nietzsche

当前筛选 #nietzsche清除筛选
Aesthetica

@Aetatesolis · Post #4360 · 19.04.2025 г., 17:21

"He who can not obey himself will be commanded." -Nietzsche The line cuts deep because it's true. We've all felt it. The moment we betray what we know we should do. The quiet voice we ignore until someone louder takes control. Do shout to yourself. #discipline #nietzsche AETATESOLIS

Aesthetica

@Aetatesolis · Post #3962 · 28.02.2025 г., 22:15

🏛Nietzsche's The Last Man "The earth hath then become small, and on it there hoppeth the last man who maketh everything small. His species is ineradicable like that of the ground-flea; the last man liveth longest." - Nietzsche Nietzsche wrote about what he called "The Last Man". The Last Man wants everyone to be the same, to have the same, and to say the same thing. The Last Man wants to feel confident that everything is known and understood and is being handled correctly. The Last Man finds reassurance in collective consensus, which he values more highly than truth or excellence. The Last Man is a flat line - incapable of awe or passion or the creation of values. #nietzsche #zarathustra *Picture: Starttheworld AETATESOLIS

Rick DuFer & Daily Cogito Channel

@filosofarsogood · Post #12497 · 26.04.2025 г., 10:58

Se il 29 aprile "Dio era morto", a fine maggio sarà sicuramente "Rick DuFer è morto" 😂 Con l'uscita del nuovo libro per Feltrinelli abbiamo un po' esagerato con l'organizzazione delle presentazioni, ma ho così tante cose da raccontarvi che non ho potuto resistere. Ci vediamo un po' dappertutto, presto arriveranno date anche al sud, ma nel frattempo Roma, Torino, Milano, Cesena e tante altre città saranno raggiunte! Spero di vedervi numerosi, questo libro non vi lascerà indifferenti. Tutte le info qui: https://www.dailycogito.com/eventi #rickdufer#dioeramorto#filosofia#feltrinelli#instabook#eventi#dalvivo#dailycogito#renatominutolo#nietzsche