Why not __description__?


Why do we not use the

def __description__

but instead just

def description()


Names with double underscores describe special behaviour for a class or its objects, such as how to initiate an object or how to loop through it. Python will use those names when that behaviour is required.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.