Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'lawrence': 0.09; 'messing': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:test': 0.09; 'thx': 0.09; 'python': 0.11; 'language.': 0.14; 'ast': 0.16; 'paragraphs,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'spacing': 0.16; '\xe9crit': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'skip:n 60': 0.24; 'url:moin': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'url:mailman': 0.30; 'url:wiki': 0.31; 'url:python': 0.33; 'something': 0.35; 'there': 0.35; 'really': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'read': 0.60; 'our': 0.64; 'charset:windows-1252': 0.65; 'subject::': 0.85; 'not:': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: (test) ? a:b Date: Wed, 22 Oct 2014 12:45:03 +0100 References: <54476af8$0$21651$426a74cc@news.free.fr> <7839376e-fc27-4299-ae63-4ddf17ef9a8a@googlegroups.com> <544775ca$0$2146$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-22-93-150.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <544775ca$0$2146$426a74cc@news.free.fr> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413978605 news.xs4all.nl 2844 [2001:888:2000:d::a6]:44145 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79437 On 22/10/2014 10:14, ast wrote: > > a écrit dans le message de > news:7839376e-fc27-4299-ae63-4ddf17ef9a8a@googlegroups.com... >> Em quarta-feira, 22 de outubro de 2014 06h29min55s UTC-2, ast escreveu: >>> Hello >>> >>> >>> >>> Is there in Python something like: >>> >>> >>> >>> j = (j >= 10) ? 3 : j+1; >>> >>> >>> >>> as in C language ? >>> >>> >>> >>> thx >> >> without not: >> j = [j+1, 3][j>=10] >> with not: >> j = [3, j+1][not (j>=10)] >> > > Oh it's a trick ! > thx IMHO it's just dreadful. Why people insist on messing around like this I really don't know, it just drives me nuts. Also would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence