#Python #Shorts
Sometimes, especially when working with other people's code, it may be nice to have a list of all class attributes (or properties). Python makes it really easy once again to accomplish this goal. All we need to do is call the built-in "dir" method on an instance of a class, and voila, we get the whole list of attributes.
-------------------------------------------------------------------------------------
Links:
Blog: https://evgenyurubkov.com
Twitter: / evgenyurubkov
Instagram: / evgenyurubkov
Youtube: / @codevev
Nesta página do site você pode assistir ao vídeo on-line Python - Get Object Attributes With a Dir Function duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário codevev 16 Agosto 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 485 vezes e gostou 28 espectadores. Boa visualização!