Nice way to cast a homogeneous tuple

Lie Ryan lie.1296 at gmail.com
Thu Aug 5 12:39:25 CEST 2010


On Wed, 28 Jul 2010 09:15:24 -0400, wheres pythonmonks 
<wherespythonmonks at gmail.com> wrote:
> A new python convert is now looking for a replacement for another 
perl idiom.

A functional alternative:
l = ...
seqint = compose(map, int)
print f(seqint(l))




More information about the Python-list mailing list