Why not __description__?


#1



Why do we not use the


def __description__

but instead just

def description()


#2

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.


#3

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