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.

Published on 07-Dec-2017 10:39:00