TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #345 · 9 окт.

Функция dir() - удобна для получения списка атрибутов у любого объекта. Ранее я писал про функцию __dir__() в модуле (не путайте её с переменной __all__(), которая указывает список объектов для импорта если встречается конструкция from module import *). Скорее всего вы уже знаете как использовать функцию dir(). Любой объект может реализовать метод __dir__() чтобы указать список имеющийхся и динамических атрибутов. И функция dir() поможет получить список этих атрибутов. >>> dir(str) ['__add__', '__class__', '__contains__', ...] У этой функции есть еще один способ применения. Её можно вызвать без аргумента, и в таком случае она вернёт список имён в текущем неймспейсе. >>> dir() ['__builtins__', '__doc__', '__file__', ...] >>> def test(): >>> x = 1 >>> print(dir()) >>> test() ['x'] #basic#tricks

Резултати

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

Пребарај: #wollo

当前筛选 #wollo清除筛选
Addis Standard

@addisstandardeng · Post #21511 · 24.02.2026 г., 10:33

#Commentary: From #Derg to #EPRDF to Present: #Ethiopia’s unfinished nation-state-building journey In this commentary, Merera Gudina traces Ethiopia’s persistent instability to failed state-building across the imperial, Derg, and EPRDF eras. He argues each collapse stemmed from rulers prioritizing personal power over the "equality of Ethiopian peoples" and their "thirst for development." Merera recounts how Emperor Haile Selassie’s 60-year reign ended ignominiously, even as hundreds of thousands perished in #Wollo, while the Derg, despite abolishing feudal landholding, succumbed to an "extreme lust for power," enforcing Stalinist "#Red_Terror" and destroying movements. The EPRDF era, meant to resolve the "nationalities question," became a 27-year "crude joke." Today, Ethiopia faces a "final frontier," requiring an end to "political theater" and "sham elections" for genuine unity. https://addisstandard.com/?p=55338