Функция 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
⚡️JetTon Games: Exciting New Slots Arrived!
#JetTon#slots
JetTon Games has introduced new enticing slots including Starshine Crystals, Coin Express, and Fighter Pit, each offering unique features and high potential wins. Players can enjoy wilds, risk games, and bonus fights with impressive multipliers. Join the fun at JetTon Games and share your favorites in the comments!
Source: link
@tonlines
🔥1 week after Dragon's Call release and we got:
👾70,000players played
😮x1268max win
In celebration of this we redesign game cover in different art styles🎨, try to guess what those styles are!
#dragonscall#truelab#slots
Our new column - Panda news from Dragon's Call📰
Today we discuss Colombia's tax hike in gambling💔
What do you think of this format?🐼
#news#pandanews#slots#dragonscall
The World of Games Awaits
🎰Polistar Casino invites you to an exciting world of games! 🃏
From classics to the latest releases – our collection is designed to deliver vivid emotions and engaging leisure. Enjoy high-quality graphics and a user-friendly interface.
➡️ Explore the Polistar universe. Simple sign-up here:
[Polistar Casino]
#Sponsorship#CasinoPolistar#CasinoGames#Slots#NewCasino