No semantics are associated with the final underscore. According to PEP 8 , the Python style guide, users are strongly encouraged to use trailing underscores to ensure they are consistent with the Python and / or Python Embedded keywords:
single_trailing_underscore_ : used by convention to avoid conflicts with the Python keyword, e.g.
Tkinter.Toplevel(master, class_='ClassName')
Using set_ means the built-in name for the sets, i.e. set , will not be obscured and lose a known link during a function call.
Jim fasarakis hilliard
source share