Things that are wrong with Python (2): return values

February 12th, 2009 | by Will |

Python doesn’t return values by default.

This is wrong. The last value should always be returned.

  1. One Response to “Things that are wrong with Python (2): return values”

  2. By Mike on Aug 7, 2009 | Reply

    No, no, no, no, no! As PEP20 says, “Explicit is better than implicit.” There is no need for such magic. Say what you mean. Not bothering with a return statement should mean the closest thing to nothing-returned as you can get.

Sorry, comments for this entry are closed at this time.