most ambiguous line of code ever written?

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Jun 3 11:20:57 EDT 2015


I wanted a piece of code to write alternatively to the left and right 
sides of a deque.  I remembered a stackoverflow question about toggling 
with an excellent answer from Raymond Hettinger.  So I now have this.

right = not right

Isn't that just beautiful?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list