Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91971
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'subject:code': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'remembered': 0.16; 'subject:ever': 0.16; 'subject:most': 0.16; 'language': 0.19; 'lawrence': 0.22; 'header:User-Agent:1': 0.26; 'question': 0.26; 'header:X-Complaints-To:1': 0.26; 'this.': 0.28; 'piece': 0.29; 'raymond': 0.31; 'code': 0.31; 'language.': 0.32; 'subject:?': 0.34; 'to:addr:python-list': 0.35; "isn't": 0.35; 'received:org': 0.38; 'wanted': 0.39; 'to:addr:python.org': 0.39; 'mark': 0.40; 'our': 0.64; 'received:89': 0.80; 'pythonistas,': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | most ambiguous line of code ever written? |
| Date | Wed, 03 Jun 2015 16:20:57 +0100 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | host-89-240-175-57.as13285.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.112.1433344889.13271.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1433344889 news.xs4all.nl 2903 [2001:888:2000:d::a6]:56105 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 2836 |
| X-Received-Body-CRC | 1263993529 |
| Xref | csiph.com comp.lang.python:91971 |
Show key headers only | 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 | Next — Next in thread | Find similar | Unroll 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