Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'subject:query': 0.07; 'test,': 0.07; 'exceeds': 0.09; 'variable,': 0.09; 'cc:addr :python-list': 0.11; 'assume': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'initially,': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'input': 0.22; 'cc:addr:python.org': 0.22; 'subject:Code': 0.24; 'initial': 0.24; 'cc:2**0': 0.24; 'purposes': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; 'handled': 0.32; 'etc': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'pm,': 0.38; 'that,': 0.38; 'moving': 0.39; 'either': 0.39; 'how': 0.40; 'such': 0.63; 'maximum': 0.63; 'reached': 0.63; 'skip:n 10': 0.64; 'our': 0.64; 'vehicle': 0.68; 'other.': 0.75; 'power': 0.76; 'etc,': 0.84; 'onboard': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=tERrbgvlN0cVrdDeDIw2/lEGaKls6QHRUmR0KbzxTsg=; b=k1NK20DoJ1ju0Y39cNG63IKLWgOsGv3h5da7PvN3WHixiowBozlfqRN7jnvvh2m2EW V25hjxJwTW/U5R2FaE2yCyQpCK1vX6gFJFigpccNucTySNUh/8Y+fICmeFPeIvW8R42S +8u/MUpYI6efsYajJch8iXkMXklnLuG1FxfpPJXlyXBwdPGshXNJh+qXQYRVpfcxUsgx UbziKe35lP1eMXExJuH3dt8QzwktoySJmChnNaKnCleAleUvLJwj76c4p6+FPh3yKTG9 pyajuN0H3TF2HaZConKwJfc7ME8HptwUvruh2IUOTcJmZLswAwinmBZZBFxok+i3PX/W IsaQ== MIME-Version: 1.0 X-Received: by 10.69.25.69 with SMTP id io5mr30201265pbd.22.1396337190688; Tue, 01 Apr 2014 00:26:30 -0700 (PDT) In-Reply-To: References: <533a3fd8$0$2909$c3e8da3$76491128@news.astraweb.com> Date: Tue, 1 Apr 2014 18:26:30 +1100 Subject: Re: Code style query: multiple assignments in if/elif tree From: Chris Angelico Cc: Python Content-Type: text/plain; charset=UTF-8 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396337193 news.xs4all.nl 2928 [2001:888:2000:d::a6]:57162 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69480 On Tue, Apr 1, 2014 at 6:21 PM, David Hutto wrote: > The difference in our opinions, seems to be that there is an initial resting > state, and not at an already accelerated motion that has reached it's > maximum capacity. > > > So there is a dynamic in my mind's eye, where the object is at a "resting" > point initially, and either the environment, or the object can maneuver > their own viscosity in relation to the other. The initial state, in this problem, is of a vehicle moving at a known speed (an input to the formula; it's a variable, but one that we know at that point). Friction, viscosity, etc, etc, etc are all handled elsewhere; these trains are generally way overpowered, and the onboard computer caps the power and non-emergency braking such that the change in speed never exceeds 0.85 m/s/s. I don't know how exactly it goes about that, but for the purposes of this test, we can assume that it's able to achieve that acceleration. ChrisA