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

PythonServer Side ProgrammingProgramming

We note that names with double leading and trailing underscores like mentioned above are essentially reserved for Python built-in functions. We are better off not using similar names.

Updated on 30-Jul-2019 22:30:20