Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Alan Evangelista Newsgroups: comp.lang.python Subject: Re: for / while else doesn't make sense Date: Mon, 23 May 2016 15:06:05 -0300 Lines: 14 Message-ID: References: <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> <201605231806.u4NI3v2I043785@mx0a-001b2d01.pphosted.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de TI6eiqDoWXjLPw1UcTosMQrmlzjqytwwBqGfaDPO2r/w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'postfix': 0.07; 'rename': 0.07; 'failure.': 0.09; 'literal': 0.09; 'subject:while': 0.09; 'syntax': 0.13; 'suggest': 0.15; '2016': 0.16; '23,': 0.16; 'better:': 0.16; 'received:9': 0.16; 'received:ibm.com': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; 'string': 0.17; '>>>': 0.20; 'fraction': 0.22; 'am,': 0.23; 'seems': 0.23; 'header:In-Reply-To:1': 0.24; 'discussion': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'to:addr:python.org': 0.40; 'header:Message- Id:1': 0.61; 'total': 0.62; 'charset:windows-1252': 0.62; 'subject: / ': 0.63; 'subject.': 0.72; 'special': 0.73; '11:44': 0.84; 'subject:else': 0.84; 'subject:sense': 0.84; 'received:(may be forged)': 0.91 X-IBM-Helo: d24dlp01.br.ibm.com X-IBM-MailFrom: alanoe@linux.vnet.ibm.com X-IBM-RcptTo: python-list@python.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 In-Reply-To: X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16052318-0020-0000-0000-00000207AF9E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16052318-0021-0000-0000-00002FC07317 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-05-23_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_definite policy=outbound score=100 spamscore=100 suspectscore=13 malwarescore=0 phishscore=0 adultscore=0 bulkscore=100 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1605230214 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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: <201605231806.u4NI3v2I043785@mx0a-001b2d01.pphosted.com> X-Mailman-Original-References: <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> Xref: csiph.com comp.lang.python:109031 On 05/23/2016 02:52 PM, Ian Kelly wrote: > On Mon, May 23, 2016 at 11:44 AM, Random832 wrote: >> 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. > Sadly, the postfix syntax 22/7**f is a total failure. It seems this discussion has nothing to do with for/while else anymore.... I suggest you rename the subject.