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


Groups > comp.lang.python > #102566

Re: realtime output and csv files

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Subject Re: realtime output and csv files
Date Fri, 5 Feb 2016 17:12:36 -0500
Lines 35
Message-ID <mailman.25.1454710365.2317.python-list@python.org> (permalink)
References <n92ucb$1h5s$1@gioia.aioe.org> <mailman.13.1454702263.2317.python-list@python.org> <n9331n$1omq$1@gioia.aioe.org> <56B51065.2090104@gmail.com> <CAPM-O+zyt0RvT1aPf102+Hj6=cR_smDX=9kbCDetNUZoqz-9JQ@mail.gmail.com> <56B51957.2030900@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 3WIo6hv6ofmUa2aZ4e/cowmpgYmOAXb85p3PU661VCqA==
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.029
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'csv': 0.09; 'subject:files': 0.09; 'suggest': 0.15; '2016': 0.16; 'point!': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'email addr:gmail.com&gt;': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'parser': 0.22; 'feb': 0.23; 'header:In-Reply-To:1': 0.24; 'fri,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'spaces': 0.29; 'there.': 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'surprised': 0.33; 'url:listinfo': 0.34; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'text': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'url:mail': 0.40; 'personally': 0.61; 'more': 0.63; '>>>>>': 0.66; 'eyes': 0.70; '(according': 0.84; 'bernardo': 0.84; 'to:none': 0.91; 'careful': 0.91; 'joel': 0.91
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=AfmQbSIC+dC52IhF0eq1g5NLCQqt8hGQfBo1cqLUU7Q=; b=kcJgPe1VM5yMDk83fGYwV2H+9qCLN8WagPPLtUcifzD9jnTmJsApm0ui78aqvMXdhU 9FeHvODrjFlPGpKZv2HmQIJ89B9+IawCs8cerKLvPpuKNvtbVJFqX8wQKPFEXqQR+ICw r61OAau5HSCSc29mYpmoh3Ous2eJs7dCa2QYbzElhn5eWsG4ztbA3/OjfGNN023HSHgI qFPQiYKmXtWweoXraN6YuiiBg7DU/yiimPNab7mS34zm1gI3sUVydxURzHh8WGzRJtuI YvaCnWwRpoiEX7EiJ5CFM5M0O9ecY0WK2ssQPRmYUhTIWvkQTYLNm+IvyYnrnkC5HwtA +ymA==
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:date :message-id:subject:from:cc:content-type; bh=AfmQbSIC+dC52IhF0eq1g5NLCQqt8hGQfBo1cqLUU7Q=; b=nIvKTYcjiguboADXzV2msPJzYuv78jvQOIBLSbvO2okcWEYB4l1OQoFTh3pcw7UQEp neV4xEYDNnNke9NwQeFH+lBgB+PsMb4etTQQDkLskGHyOwPGoiFgSZpnBzgVwgwNHsdy q1FWCIM9ajt6Oc38rqaqUwVnfJ/a+hntPcsfTvp0dfHnmAkY+EdUC4HTP0KdJWdHEF9k WSCm50cSAeMKbyBxV+ugybMlXLEsrCEGLwSmkbzF/lMB03KpCMxZUq6dKQeFnK1pggrx 18i6n9mLQq03QC2pajOPNrkTfA3bDH9W9aLI/ksF+gEpixUNoRJP+qCWIV+vHfPJWtXv yKNA==
X-Gm-Message-State AG10YORDmyX6+JyB/LZaBL9S3KGmrrcpeun5tiE28q+vN0u+zkqfY7aQs+JJJWRUA9bKdAPQyqjU1RheVdnTnw==
X-Received by 10.107.10.147 with SMTP id 19mr15973726iok.46.1454710356668; Fri, 05 Feb 2016 14:12:36 -0800 (PST)
In-Reply-To <56B51957.2030900@gmail.com>
X-Content-Filtered-By Mailman/MimeDel 2.1.21rc2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:102566

Show key headers only | View raw


On Fri, Feb 5, 2016 at 4:51 PM, Bernardo Sulzbach <mafagafogigante@gmail.com
> wrote:

> On 02/05/2016 07:43 PM, Joel Goldstick wrote:
>
>> print("%d, %2d:%2d, %.1f" % (1,10,24,20.4))
>>>>>
>>>> 1, 10:24, 20.4
>>
>
> Let us be more careful there. Although CSV has no formal specification
> (according to the IETF), *those spaces are not good*.
>
> It is **very unlikely** that they will cause issues, but 1,10:24,20.4 is
> *safer* and - to my eyes - better CSV.
>
> I wouldn't be surprised if a parser treated a value as text only because
> it has spaces on it.
>
> For OP, if you are going for this, I - personally - suggest sticking to
> "%d,%2d:%2d,%.1f".


Good point!

>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com/stats/birthdays

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


Thread

realtime output and csv files lucan <lucan@NNN.it> - 2016-02-05 20:49 +0100
  Re: realtime output and csv files Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-02-05 17:57 -0200
    Re: realtime output and csv files lucan <lucan@NNN.it> - 2016-02-05 22:09 +0100
      Re: realtime output and csv files Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-02-05 19:13 -0200
      Re: realtime output and csv files Joel Goldstick <joel.goldstick@gmail.com> - 2016-02-05 16:43 -0500
      Re: realtime output and csv files Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-02-05 19:51 -0200
        Re: realtime output and csv files lucan <lucan@NNN.it> - 2016-02-06 14:40 +0100
      Re: realtime output and csv files Joel Goldstick <joel.goldstick@gmail.com> - 2016-02-05 17:12 -0500
  Re: realtime output and csv files Tim Chase <python.list@tim.thechases.com> - 2016-02-05 22:27 -0600
  Re: realtime output and csv files Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-02-06 02:53 -0200
  Re: realtime output and csv files Tim Chase <python.list@tim.thechases.com> - 2016-02-06 06:45 -0600

csiph-web