I'm not sure whether the official standard is, but I always put the method __init__, then my own methods, followed by any embedded attachments, which I plan to implement ( __str__, __eq__, etc.). I am trying to group methods using similar functionality and arrange inline modules the same way in all classes.
source
share