Re:Ask HN: Why Python over Ruby?
by earthboundkid on Thursday July 02, 2009 @05:48AM
(#684094)
Even without going to the trouble of importing types, every Python callable has an __call__ method. Including the __call__ method:
Don't use this in real life though, there's a performance penalty.
[ Parent
| on HN ]
Re:Ask HN: Why Python over Ruby?
by ubernostrum on Thursday July 02, 2009 @01:49PM
(#684797)
Of course, there's also the singleton that always returns itself:
>>> recursive = lambda: recursive