Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45799

Re: file I/O and arithmetic calculation

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.065
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'subject:file': 0.07; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'stuff.': 0.16; 'subject:arithmetic': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'normally': 0.19; 'thu,': 0.19; '>>>': 0.22; 'code,': 0.22; 'example.': 0.24; 'fine': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'skip:- 40': 0.29; 'am,': 0.29; "doesn't": 0.30; 'needed.': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'file': 0.32; 'figure': 0.32; 'date:': 0.34; "can't": 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; '+0100': 0.36; 'list': 0.37; 'email addr:python.org': 0.37; 'received:209': 0.37; 'to:addr:python- list': 0.38; 'explain': 0.39; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'tell': 0.60; "you're": 0.61; 'email addr:gmail.com': 0.63; 're:': 0.63; 'email name:python-list': 0.65; 'obvious': 0.74; 'episode': 0.84; 'carlos': 0.91; '2013': 0.98
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=lekrWQkFeu5Vj70DFJ2cBBX+y0eQ2ixCF6VR2F71MoE=; b=OtEh7wyyWGWfE0mDvfXgrV/ZRRgq01HQpzoEVTNWT2Ll/CcY0taViAMTa7Uthkptdr zF9jH+VMiqrkMgbzyci+1HKaBPBKHZdMPR0yaw+68V8+Pg3gR+fr3PVJz0O5ZV0VEJ6J qwe/BA7PQ3gTq0UbHbU9XgA7BJ8fGJOaWcW7we9y/WaImNY+58lAVKB7P5BVrWZk49wb THEag6WPZW1UGYFIpN2vTTGRohd2o25p1DLZcUqo9OugN1lGOoKxYl4QXez3aLjlIN17 F4+jYGfRN8kf9pu19fWmq7C/xyTfl6ngPPIypjBHK7fvsoeokz1vQ7r1KHWCFRdJik8Y BCJg==
MIME-Version 1.0
X-Received by 10.52.175.200 with SMTP id cc8mr4193061vdc.94.1369308951037; Thu, 23 May 2013 04:35:51 -0700 (PDT)
In-Reply-To <BLU176-W45829351ABC75D63C63DC9D7AA0@phx.gbl>
References <CAK9meDsND9501=2ydmCAFi4s6+fw+rTrDGJA2qpEyXKoae6Axw@mail.gmail.com> <BLU176-W17E5DA2B650B3CE80F79BFD7A90@phx.gbl> <CAHVvXxR-5-s6GBY0nR_J--w=+T1SyeauCkEr_Frncj+trE=aWg@mail.gmail.com> <BLU176-W1629E4C46CA08C58AA583CD7A90@phx.gbl> <CAHVvXxRL=4+9+CkMKfZ3ei86i0xF14JZRpT2rB1RgmBV+ATtug@mail.gmail.com> <BLU176-W45829351ABC75D63C63DC9D7AA0@phx.gbl>
Date Thu, 23 May 2013 21:35:50 +1000
Subject Re: file I/O and arithmetic calculation
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2011.1369308959.3114.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369308959 news.xs4all.nl 15885 [2001:888:2000:d::a6]:40372
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45799

Show key headers only | View raw


On Thu, May 23, 2013 at 10:37 AM, Carlos Nepomuceno
<carlosnepomuceno@outlook.com> wrote:
> ----------------------------------------
>> From: oscar.j.benjamin@gmail.com
>> Date: Thu, 23 May 2013 01:34:37 +0100
>> Subject: Re: file I/O and arithmetic calculation
>> To: carlosnepomuceno@outlook.com
>> CC: python-list@python.org
>>
>> On 23 May 2013 00:49, Carlos Nepomuceno <carlosnepomuceno@outlook.com> wrote:
>>>
>>> The code is pretty obvious to me, I mean there's no obfuscation at all.
>>
>> I honestly can't tell if you're joking.
>
> I'm not! lol

Reminds me of an episode of BBT where Sheldon's trying to figure out sarcasm.

Leonard: <obviously sarcastic comment>
Sheldon: "Was that sarcasm?"
Leonard: "Noooooo..."
Sheldon: "Was THAT sarcasm?"
Leonard: -- no answer needed.

Normally don't do this much list comprehension in an example. It may
be fine for the code, but it doesn't help explain stuff. :)

ChrisA

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: file I/O and arithmetic calculation Chris Angelico <rosuav@gmail.com> - 2013-05-23 21:35 +1000
  Re: file I/O and arithmetic calculation Keira Wilson <wilkeira@gmail.com> - 2013-05-23 07:17 -0700
    Re: file I/O and arithmetic calculation Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-23 20:12 +0000
      RE: file I/O and arithmetic calculation Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-24 01:22 +0300
        Re: file I/O and arithmetic calculation Keira Wilson <wilkeira@gmail.com> - 2013-05-23 18:19 -0700

csiph-web