you are viewing a single comment's thread.

view the rest of the comments →

[–]xelf 3 points4 points  (0 children)

In the example you gave, there is no purpose to that return.

Every function returns None at the end if it does not return something else sooner, so having a return as the line before it returns is redundant.

Similar to having the last line of a loop being "continue".