0
I realize that some scripts in Python have expressions with commands like this:
__name__ == “__main__”'
__str__,__repr__
self.__class__ self.__dict__
What are these commands that start and end with underscore?
0
I realize that some scripts in Python have expressions with commands like this:
__name__ == “__main__”'
__str__,__repr__
self.__class__ self.__dict__
What are these commands that start and end with underscore?
Browser other questions tagged python python-3.x
You are not signed in. Login or sign up in order to post.
Read this: One or two underscores?
– Luiz Augusto
I made a joke out of it:
__cats__, __cats__, Hoooo!
– Piovezan