Функция 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
Just In: World Liberty Finance ( @worldlibertyfi ) sent 500M $WLFI worth $83.12M to #Jump Trading.
Data - @Nansen_ai
https://x.com/OnchainLens/status/2010748644979577089
Follow @onchainlens for more onchain updates
Shoutout to the early donators 🚀💥 You’re our real VIPs for jumping in first and supporting the new ETH memecoin season! 🙌💰
The more you #JUMP into $JUMP, the closer we get to make ETH great again 🌕🚀
Let’s f***ing jump and save Ethereum together!
Whales are starting to #JUMP into our donation 🐳🐳
A 70 #ETH donation just came in! It came from a very old and large wallet holding over 2500 ETH, the #MEGA movement is getting stronger by the day. Join the movement and make memes on Ethereum great again!
https://etherscan.io/tx/0x25b8397cda09027cc3bcc86ff2abf58fa2dc07022204dd8161a7b2630e658b7d
🚀 The wait is over - $JUMP is live! 🚀
Donate now and secure your stake in Jump.fun, the next-generation memecoin launchpad:
🔥 Liquidity War Mode (loot liquidity, win big!)
💰 FREE 6 ETH liquidity loan on Uniswap
⚡️ Community-ownership via $JUMP token
#jumpfun is the key to bring back memecoin FOMO and fun to the Ethereum ecosystem. #MEGA
🌕 Don’t just watch - #jump high, moon higher!
Crypto Summit Guest List Revealed
Notable figures like Kayne West and the Lazarus Group are invited to a major crypto summit. In related news, Mexican billionaire Ricardo Salinas has raised his Bitcoin holdings to 70%, moving away from gold investments. Meanwhile, Jump is resuming its U.S. crypto operations, boosting hiring amid rising trading volumes.
#Crypto#Bitcoin#Summit#Finance#Investing#Market#Jump#Arbitrum#LazarusGroup#Salinas