>< swap operator

Léo El Amri leo at superlel.me
Mon Aug 13 16:01:19 EDT 2018


On 13/08/2018 21:54, skybuck2000 at hotmail.com wrote:
> I just had a funny idea how to implement a swap operator for types:
> 
> A >< B
> 
> would mean swap A and B.

I think that:

a, b = b, a

is pretty enough



More information about the Python-list mailing list