What are Python commands with underscore at the beginning and end?

Asked

Viewed 33 times

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?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.