Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Why not allow empty code blocks? Date: Sat, 30 Jul 2016 22:47:19 +1000 Lines: 31 Message-ID: References: <579B1ABB.1070500@rece.vub.ac.be> <579c2095$0$22142$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 0ajzZ1av7+knOvXLTJfByAE9gOipWxQhBf70HvKKzwwg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:code': 0.07; 'variable,': 0.07; 'cc:addr:python-list': 0.09; 'subject:Why': 0.09; 'subject:not': 0.11; '2016': 0.16; 'equal.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iterator': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'statement.': 0.16; 'subject:allow': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'sat,': 0.23; 'header :In-Reply-To:1': 0.24; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; 'print': 0.30; 'that,': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'but': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'some': 0.40; '30,': 0.63; '>>>>>': 0.66; 'beat': 0.66; 'jul': 0.72; '(also,': 0.84; 'chrisa': 0.84; 'to:none': 0.91; 'improvement': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=QLNW6FV6wgZF01gD3Cp5qskIgZIb4hCADRpfxd3Xky4=; b=oRiUdi4mlx+SGV9QLjG5lbpx9+oRof/XMUzc904Sc4dXyfOmDmFvPxOVjujBKVBKYB 9WVjNxTelKC24oJjA8NtP/WEzuk9Kq2IJrV6ifL29Xhtx1sW9v0uC+tFysG4KtPubsaX XIEuZSZVOMasGGO7ScVWzoRIE33HsjvQ8l8zG0dvcd2JpxztFwSVUSaAe9M/FCKfcRrw 53tFUIfgny8KxYZcUeDtoelbwODc3yS4guwjnpQw9w7vwJSuKG7urbmeDjONyXq8ff0f sQ3ofAE/ZTdgchyRAfy5jQTE7WiBEZhDKP3QDPu3taqFSJIXC7uGeWznosVMDoQhUZC/ OSyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=QLNW6FV6wgZF01gD3Cp5qskIgZIb4hCADRpfxd3Xky4=; b=cAlKsIhiH5Td+2IXLABbQTREG7+3VKolITbWogJhgYKW1fOwRyBeWyHp6g39Prw9Dc CwVq0aHc4fTScJhTZx4NeeJdIhXTS0zmg3fvcvyZLV0EakIP/602aGev1frOcmFQrnAu gujjabBlmuu9lZSU/NR4EuSahG1ElH1yyssvY+hf8anQv5Ynrr9zLLWVQlw1LOqqG5Wr Tjwj2dgJJWVB+eQk98PlPan9i00d+mUdaZ36J1KTqEXJBI7enhuWwy3njPOn49fVzG3N VdAYGE8Ey7pq2of4jvlXIiAA97Q57Hi/YCDDiX8yQmvztLSY4biS7RYtfLPGYRHGikFW lZrQ== X-Gm-Message-State: AEkoouuUkE6Gocs3iENkpUC/b2uc1rHzi4KTt7towT4YHHWbMsceZfIsuoIk2iwHShnzq3yS89jUP5gmNf0Q+Q== X-Received: by 10.28.38.196 with SMTP id m187mr5433327wmm.81.1469882841547; Sat, 30 Jul 2016 05:47:21 -0700 (PDT) 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: X-Mailman-Original-References: <579B1ABB.1070500@rece.vub.ac.be> <579c2095$0$22142$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:112064 On Sat, Jul 30, 2016 at 10:39 PM, BartC wrote: > On 30/07/2016 13:22, Chris Angelico wrote: > >>>>> print(*range(10), sep='\n') >> >> 0 >> 1 >> 2 >> 3 >> 4 >> 5 >> 6 >> 7 >> 8 >> 9 >>>>> >>>>> >> >> Beat that, print statement. > > > for i in range(10): print i > > Same number of characters, but a lot less punctuation! So, no improvement - exactly equal. And no longer a single expression, ergo no longer valid in as many contexts. (Also, it requires the use and damage of some iterator variable, which may be significant in some contexts.) ChrisA