Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: for / while else doesn't make sense Date: Mon, 23 May 2016 13:44:20 -0400 Lines: 8 Message-ID: References: <573f9322$0$1616$c3e8da3$5496439d@news.astraweb.com> <5741cde9$0$1587$c3e8da3$5496439d@news.astraweb.com> <57422e03$0$1596$c3e8da3$5496439d@news.astraweb.com> <85r3ct9zt2.fsf@benfinney.id.au> <5742bacb$0$1526$c3e8da3$5496439d@news.astraweb.com> <87zirgrgol.fsf@bsb.me.uk> <574336f5$0$1600$c3e8da3$5496439d@news.astraweb.com> <1464025460.2711536.616274849.5789A279@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de Gd577LmL3HRUl2XulCbr+QTed2BMfZsmCwquK+tm5jaA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'literal': 0.09; 'received:internal': 0.09; 'subject:while': 0.09; 'syntax': 0.13; '23,': 0.16; 'better:': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; 'string': 0.17; '>>>': 0.20; 'fraction': 0.22; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'chris': 0.26; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'subject: / ': 0.63; 'special': 0.73; 'subject:else': 0.84; 'subject:sense': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=9Z7Oqv2rRoUne4DcLlHvg0SZw+0=; b=oum2XQ 8HULw82ybKGsT7xx8JSSoRX+1eaCx2HFxcEzTYnOy+hVslUNCCEuVXueJLyRgkFx pH82sR23FjdwQpH3b/q2TAFISafpz5A7Dq/LVCSyEKbDHpIXchF0K/5d6TEUpbYx RjUwEDVcgw1Y9fcrUGDD4Bo1iCK0GY7+0tyFA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=9Z7Oqv2rRoUne4D cLlHvg0SZw+0=; b=eFrYQGFdwdm8RQWHYVws5ONjSi/ISJ2sLVtXVxxsrzeGUbc WeEqYfvQNfqp0eLmy4uzamLwCw6PR49wDAx7ep8tTCV7aJxpLDYJ1gxHkLJqIoal P1woyTOV3lNO6NAia1M2kQv5w6GkIDwrkX9Bj8a37f3oI6fKtRS2cIxJNz0E= X-Sasl-Enc: +s6c2uaqMuoYh+ONPd73lah9PPfkmZfsmilAHNR0dgMp 1464025460 X-Mailer: MessagingEngine.com Webmail Interface - ajax-401ef27f In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1464025460.2711536.616274849.5789A279@webmail.messagingengine.com> X-Mailman-Original-References: <573f9322$0$1616$c3e8da3$5496439d@news.astraweb.com> <5741cde9$0$1587$c3e8da3$5496439d@news.astraweb.com> <57422e03$0$1596$c3e8da3$5496439d@news.astraweb.com> <85r3ct9zt2.fsf@benfinney.id.au> <5742bacb$0$1526$c3e8da3$5496439d@news.astraweb.com> <87zirgrgol.fsf@bsb.me.uk> <574336f5$0$1600$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:109014 On Mon, May 23, 2016, at 13:33, Chris Angelico wrote: > and then you can use the special "tagged literal" syntax, like with > special forms of string literal: > > >>> f*22/7 + f*2/11 > Fraction(256, 77) I like the infix fraction literal syntax better: 22/f/7 + 2/f/11.