Функция 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
🙋♂👀#JTO Fortune: Jito plans to launch a mobile trading app called JTX in July. The app will offer spot trading, with integrations with perpetual futures and prediction markets coming in the future.
🚀 Back to Back profits are made in the Premium Group
🎯🎯#JTO/USDT has covered all the target to give a Profit of 25% to all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gain
#JTO
Hanwha Asset Management договорилась с Jito о ликвидном стейкинге для ETP в Корее
Южнокорейская Hanwha Asset Management объявила о партнерстве с Jito Foundation для проработки инфраструктуры под биржевые продукты (ETP) на базе JitoSOL.
Фокус сотрудничества: интеграция JitoSOL в структуру ETP, кастодия в рамках регуляторных требований, риск-менеджмент и взаимодействие с регуляторами.
Отдельно отмечается, что JitoSOL крупнейший LST в Solana, с оценкой порядка $1 млрд по капитализации.
#JTO bounced from the Green zone and broken up the trendline on 4H Time frame,we are waiting for the next movement
📈
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
Opened a short #JTO
The asset showed systematic growth along the resistance slope, but this was followed by pressure from sellers.
We failed to test the upper boundary of the ascending triangle and we began to decline again, followed by a breakdown of the lower boundary.
Also, the coin again went under the moving MA50 and MA200, which is typical for a weak buyer. I assume that the token will continue to decline and gain a foothold under the moving averages.
Goals: $2.1601 - $2.0312 - $1.7708
Stop: $2.5798