Re:A few things to remember while coding in Python
by mattmanser on Saturday May 19, 2012 @07:10PM
(#3997352)
It's not designed to be useful
By useful he means mucking up your program in totally unexpected ways.
He's being nice about it being a silly decision to have it behave that way. The entire post reads more like a list of unexpected things that will bite you in the ass.
Functions just being variables has useful properties when you're doing something like fancy switch/case type things (the readability of this is questionable, but it's cool to look at it, like a Duff's device):
Also consider something like this, which is how decorators work (and they're incredibly useful), sort of like a closure: I'd be surprised if Ruby couldn't do everything I just did.