double-underscore

Why do some functions have underscores "__" before and after the function name?

Why do some functions have underscores "__" before and after the function name? Question: This “underscoring” seems to occur a lot, and I was wondering if this was a requirement in the Python language, or merely a matter of convention? Also, could someone name and explain which functions tend to have the underscores, and why …

Total answers: 7