It turns out that int does a pretty good job of removing spaces, so there is no need to use strip
tuple(map(int,raw_input().split(',')))
For example:
>>> tuple(map(int,"3,4".split(','))) (3, 4) >>> tuple(map(int," 1 , 2 ".split(','))) (1, 2)
John la rooy
source share