Nice way to cast a homogeneous tuple

Duncan Booth duncan.booth at invalid.invalid
Wed Jul 28 09:31:21 EDT 2010


wheres pythonmonks <wherespythonmonks at gmail.com> wrote:

> 2.  There is something like map(lambda x: int(x).... without all the
> lambda function call overhead.  (e.g., cast tuple)?

Yes there is: "lambda x: int(x)" is just a roundabout way of writing "int"


-- 
Duncan Booth http://kupuguy.blogspot.com



More information about the Python-list mailing list