Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: (test) ? a:b Date: Thu, 23 Oct 2014 16:46:06 +1300 Lines: 16 Message-ID: References: <54476af8$0$21651$426a74cc@news.free.fr> <7839376e-fc27-4299-ae63-4ddf17ef9a8a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net ULEOgsRuHAhJw5h7Ym1yoABPaqSQQoEJQ5WKWoqOXWFUqwcB1W Cancel-Lock: sha1:RazzhQ8fBiVPgv0dcmYSqnqo7gE= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:79500 Chris Angelico wrote: > I've seen much MUCH worse... where multiple conditional > expressions get combined arithmetically, and then the result used > somewhere... In the days of old-school BASIC it was common to exploit the fact that boolean expressions evaluated to 0 or 1 (or -1, depending on your dialect :) to achieve conditional expressions or other tricks. Probably forgiveable, given that there were no real conditional expressions, and every byte of your 48K or less of RAM was precious... -- Greg