Paul Boddie wrote: > Kay Schluehr wrote: >> Spreading tiny function definitions all over the code >> may be finally not such a good idea compared with a few generic methods >> that get just called? OO might run out of fashion these days but Python >> is not Java and Pythons OO is pretty lightweight. > > I think you've successfully identified a recent trend in Python > development: the abandonment of fairly transparent object-oriented > techniques in favour of more opaque but supposedly more convenient > hybrid techniques.
Just for the record : Ruby's code-blocks (closures, really) come from Smalltalk, which is still the OneTrueObjectLanguage(tm). -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list