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.
A weblog by Will Fitzgerald
Python doesn’t return values by default.
This is wrong. The last value should always be returned.
Sorry, comments for this entry are closed at this time.
One Response to “Things that are wrong with Python (2): return values”
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.