In lisp I used to do things like that, knowing it won't crash:
[3]> (mapcar #'+ '(1 2 3) '(1 2))
(2 4)
The equivalent in python seems to crash:
>>> map(lambda x,y : x + y, [1,2,3], [1,2])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 1, in <lambda>
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Is there a function in python that works like the lisp version on not-equal length lists? Or, is there a way to change the behavior of map?