I know it is a too sample question. I can't find anything in my python documents about the swap funtion. Of cause, I can write a swap use boost or an other way. But the language has grown for 13 years. Why not its library include a so basic funtion? Excuse me, My English is poor. It isn't my mather tongue.