Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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; 'typing': 0.04; 'e.g.,': 0.07; 'option,': 0.07; 'python': 0.08; '__future__': 0.09; 'dynamically': 0.09; 'variables,': 0.09; 'am,': 0.12; 'exception': 0.12; 'static': 0.15; 'change;': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'per-module': 0.16; 'trausch': 0.16; 'syntax': 0.16; 'this:': 0.16; 'wrote:': 0.16; "wouldn't": 0.17; 'language,': 0.17; '(which': 0.19; 'header:In-Reply-To:1': 0.22; 'somehow': 0.23; 'aug': 0.24; 'keyword': 0.24; 'removed.': 0.24; 'skip:l 30': 0.24; 'code': 0.25; 'skip:b 20': 0.26; "i'm": 0.27; 'thu,': 0.28; 'import': 0.28; 'message-id:@mail.gmail.com': 0.29; 'fairly': 0.30; 'fork': 0.30; "it'd": 0.30; 'really,': 0.30; 'modules': 0.31; 'changes': 0.31; 'michael': 0.31; 'values': 0.32; 'implementing': 0.32; 'to:addr:python-list': 0.33; 'test': 0.34; 'things': 0.34; 'duplicate': 0.34; 'executable': 0.34; 'statement,': 0.34; 'apply': 0.35; 'uses': 0.35; '(with': 0.35; 'statements': 0.37; 'variables': 0.37; 'using': 0.37; 'could': 0.38; 'think': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'easier': 0.38; 'subject:: ': 0.39; 'either': 0.39; 'to:addr:python.org': 0.39; 'ever': 0.65; 'enable': 0.67; '11,': 0.68; 'today': 0.71; '(one': 0.73; 'subject:line': 0.73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FvxpJDp1YCNQ2qZO2YXOZ//QB4QzHdeP+UhIcga7U3w=; b=c4ayCXj6KIl3MK0Z2s05OJYk9wTnW5kQYIG2LZsAi0Ovuf31PbQ32v4W2ErLhC1bjl kMXM1niytWLhMlsG0WBIUsfuwCNBxaDZZrwe/lBDw3H8/rOZ8iEAqwNFOgqARGWMvL2K 8Pmq2MMRbufrb1yhz+6gbKKptrI6ztvaYX0ew= MIME-Version: 1.0 In-Reply-To: References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <4e424208$0$29965$c3e8da3$5496439d@news.astraweb.com> <1312981104.89312.YahooMailNeo@web121520.mail.ne1.yahoo.com> <1312982377.95657.YahooMailNeo@web121508.mail.ne1.yahoo.com> <1313031175.38817.YahooMailNeo@web121515.mail.ne1.yahoo.com> Date: Thu, 11 Aug 2011 09:24:04 +0100 Subject: Re: allow line break at operators From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313051047 news.xs4all.nl 23853 [2001:888:2000:d::a6]:47607 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11196 On Thu, Aug 11, 2011 at 6:17 AM, Michael Trausch wrote: > Somthing like an "option" keyword (which would only be a keyword until the > first executable statement, e.g., would have to be before even imports) > could enable things like "semicolon" or "explicit", or whatever really, and > only affect those who opt in. If no code is ever seen using the option, it > can even be removed. Wouldn't be a bad way to test changes that would impact > the syntax of the language, actually... Python already has a syntax like this: from __future__ import statictyping Although I'm not sure how you'd go about implementing it plausibly. It'd be a fairly backward-incompatible change; what would happen to the modules you import? Either you would have to have a duplicate set (one that uses statictyping and one that doesn't), or you'd have to have statictyping somehow work on a per-module basis. As far as I know, most of the other future statements are per-module (with the possible exception of barry_as_FLUFL, which until today I was not aware of). Would static typing then apply only to module-level variables and function-local variables, with the values in lists/tuples/dicts/objects/etc/etc/etc still being dynamically typed? I think it'd be easier to fork Python and give it a new name. ChrisA