Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91971

most ambiguous line of code ever written?

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject most ambiguous line of code ever written?
Date 2015-06-03 16:20 +0100
Newsgroups comp.lang.python
Message-ID <mailman.112.1433344889.13271.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

most ambiguous line of code ever written? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-03 16:20 +0100
  Re: most ambiguous line of code ever written? John Ladasky <john_ladasky@sbcglobal.net> - 2015-06-03 10:13 -0700

csiph-web