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 слични објави

Пребарај: #willowbrook

当前筛选 #willowbrook清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40742 · 06.03.2026 г., 07:02

Willowbrook State School was a large institution in Staten Island, New York. It cared for children and adults with intellectual disabilities. The school became overcrowded and understaffed. Conditions were dirty and unsafe. People got sick from diseases like hepatitis. Researchers gave some residents hepatitis on purpose to study it. In 1972, journalist Geraldo Rivera showed the poor conditions on TV. Senator Robert F. Kennedy called it a "snake pit." Lawsuits forced the school to make changes. Willowbrook closed in 1987. Parts of the campus are now used by the College of Staten Island. 🏫⚠️🧪📺 Be advised, this is not fun to watch, but it's recent history these people are still alive. [Watch for yourself] [Read more] @googlefactss #Willowbrook#History#DisabilityRights#StatenIsland#USA#humanExperiments#abuse