Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'subject:Python': 0.05; 'decent': 0.07; 'rounds': 0.07; 'to)': 0.07; 'integers': 0.09; 'received:10.50': 0.09; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'work"': 0.16; 'wrote:': 0.18; 'received:209.85.210.174': 0.21; 'received :mail-iy0-f174.google.com': 0.21; 'subject:list': 0.21; 'header :In-Reply-To:1': 0.22; '(or': 0.22; 'ignore': 0.24; 'expect': 0.25; 'fact': 0.27; 'producing': 0.28; 'message- id:@mail.gmail.com': 0.29; 'definition': 0.30; 'it.': 0.33; 'fri,': 0.34; 'lee': 0.34; 'integer': 0.34; 'measure': 0.34; 'safely': 0.34; 'to:addr:python-list': 0.35; 'two': 0.36; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'received:209.85': 0.38; 'third': 0.38; 'data': 0.38; 'received:209': 0.39; 'point': 0.40; 'to:addr:python.org': 0.40; 'easy': 0.60; 'header:Received:6': 0.61; 'results': 0.64; 'with,': 0.73; 'subject:,': 0.82; '"just': 0.84; 'casting': 0.84; 'negatives,': 0.84; 'semantics,': 0.84; 'xah': 0.84; 'subject:place': 0.91; 'subject:lang': 0.95 Received-SPF: pass (google.com: domain of rosuav@gmail.com designates 10.50.170.41 as permitted sender) client-ip=10.50.170.41; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rosuav@gmail.com designates 10.50.170.41 as permitted sender) smtp.mail=rosuav@gmail.com; dkim=pass header.i=rosuav@gmail.com 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:to :content-type; bh=9WecdTzbu1eU+ASoRQ1xg5bPL+YXFKcD4ChSHTUd6HU=; b=HMxwPQvjkAj5ZfDy99UM9z21DhyMzJQxDVvOhVKH9LFeBdm/3P/T9bx00g9/xqkze3 0pyephmPnS+CJM74vloP36bpE+JlNGkFkjZYTEtBDhB4gj8tYoH9jXMft8y4l/UnDAsJ Ts4ywa2/m4RJR5OCJT01qA2+VVMJhS8i4JtlDy1R1moAX86tqC+hKhu5EFNJ/Qcaz2R6 5nUrbCoQ2+EhHVaIQrkNvVFwYu7KUOD4m0aPCMY8wOHNd0wAtM7npDwYBHrrw1l8EQs5 1KoDcHJ2fpP9h9ynghcaU8/5lZVJO/QqzmEaywkl3D/h1zDsudQ71sKMc14hQ+GcsUec 54Gg== MIME-Version: 1.0 In-Reply-To: <8e769add-e63c-4a74-bb7e-ddd36c04a415@vs5g2000pbc.googlegroups.com> References: <85fa5760-68c8-41a2-9116-2489165f7ca1@j5g2000yqm.googlegroups.com> <20120229231658.89@kylheku.com> <20120301064937.505@kylheku.com> <8e769add-e63c-4a74-bb7e-ddd36c04a415@vs5g2000pbc.googlegroups.com> Date: Fri, 2 Mar 2012 18:11:29 +1100 Subject: Re: lang comparison: in-place algorithm for reversing a list in Perl,Python, Lisp 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330672293 news.xs4all.nl 6957 [2001:888:2000:d::a6]:52782 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21124 On Fri, Mar 2, 2012 at 9:04 AM, Xah Lee wrote: > One easy > way to measure it is whether a programer can read and understand a > program without having to delve into its idiosyncrasies. Neither the behavior of ints nor the behavior of IEEE floating point is a "quirk" or an "idiosyncracy". These are data types with well-defined semantics, and you need to understand them to use them. The fact that dividing two positive integers and producing (or casting to) a third integer rounds the result down is just as much a part of the definition as is two's complement negatives, which most people can safely ignore because they "just work" the way you expect. Learn what you're working with, if you expect to get decent results from it. ChrisA