#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
En esta página del sitio puede ver el video en línea Python - Get Object Attributes With a Dir Function de Duración hora minuto segunda en buena calidad , que subió el usuario codevev 16 agosto 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 485 veces y le gustó 28 a los espectadores. Disfruta viendo!