Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Bernardo Sulzbach Newsgroups: comp.lang.python Subject: Re: realtime output and csv files Date: Sat, 6 Feb 2016 02:53:13 -0200 Lines: 16 Message-ID: References: <56B4FEAC.4080706@gmail.com> <20160205222715.06320d38@bigbox.christie.dr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de npyEZpOl6dxCyDbdGtw9GgN8dOrkqmbw686xJNnEkqIw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'essentially': 0.04; 'escape': 0.07; 'formatting': 0.07; 'csv': 0.09; 'separating': 0.09; 'subject:files': 0.09; 'assume': 0.11; '2016': 0.16; 'commas,': 0.16; 'correctly,': 0.16; 'naive': 0.16; 'obviously,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'trivially': 0.16; 'wrote:': 0.16; 'library': 0.20; 'correctly.': 0.22; 'am,': 0.23; 'feb': 0.23; 'sat,': 0.23; 'transfers': 0.23; 'tim': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; "i've": 0.25; 'message-id:@mail.gmail.com': 0.27; 'chase': 0.29; 'separated': 0.29; 'starts': 0.29; 'url:mailman': 0.30; 'supposed': 0.31; 'url:python': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'text': 0.35; 'fail': 0.35; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'things': 0.38; 'received:209': 0.38; 'several': 0.38; 'data': 0.39; 'sure': 0.39; 'format': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; '"just': 0.84; 'bernardo': 0.84; 'escapes,': 0.84; 'existence.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=x23gSnXjm248ItlcXgxhVk4Buj+DSTBynWr9ILU/klY=; b=jo+uRmeBkI2lqPjc9CFKmQadATa+LTCmmLsQbXtGa52BC364krkvcsT+VEvrbOyb9u DLvL5HvomOK0v+n7nunQosm1+NVOmFl2cH1hHCyGaN0Co9BS5Ob9xmwQbUJQGQjLGure Oib69Q5nmY3JLtzi5qndBNLW6C+VltODhrAzbyNqynngx1T1eCotFMb/LOFM0kRq0LU0 54aJEYXNS033vEXO0qHizv7mqruCLX4moOsj8znJCZgtQTC0ojMLvsr72ilz4ThWMhtG mGWAwXYvt7BniwwjktXQipIItDXCCln1URGM/5oFq1EQJvOBFpPaFFh+K0+9OKKOsvMc P+5g== 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:from:date :message-id:subject:to:content-type; bh=x23gSnXjm248ItlcXgxhVk4Buj+DSTBynWr9ILU/klY=; b=XpeeqaAoSLYK+wUxssae9cupKRDZG2ms11Sqn1YdIYVppTzS1vL0lvj3M/7gw8DKC7 F1KbrCyum+q3JJv7oAPfTGPdpbQWN7vWaj/Gt/lNPMos9ERNBsE5EF/5aGyOUMPlAiVh QArOdPAWKebCjUeSmReo00bhneWZf9zOJ1L3AZazBwup8V1/11m8T6rpXbpNfTHNOUGd OGRAc5J7cANv9361jKQyGEK+Bt8ULOVSyqaGjMeQcGopbVmjmmO7jaPrCdT8LszKmZIj TFtOHI2Ds68ab2ofWq4ZSY9D2kVre1Mu3wb08Si0zZb1KeUqWB17iHHI6yBOv2GqMY/0 2/WQ== X-Gm-Message-State: AG10YORvo+kF/MUgAMRI8JF66+bzRqd98UlzP1aqpJHkMAMOxSqzsI/jk2qZWQDwFgC8Sx+176sjW3sAsgteeQ== X-Received: by 10.112.13.99 with SMTP id g3mr7235208lbc.86.1454734433060; Fri, 05 Feb 2016 20:53:53 -0800 (PST) In-Reply-To: <20160205222715.06320d38@bigbox.christie.dr> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102572 On Sat, Feb 6, 2016 at 2:27 AM, Tim Chase wrote: > On 2016-02-05 17:57, Bernardo Sulzbach wrote: >> CSVs is essentially text separated by commas, so you likely do not >> need any library to write it "Just separating with ','" should work >> if you are formatting them correctly. > >> https://mail.python.org/mailman/listinfo/python-list > And even if you have things to escape or format correctly, the stdlib > has a "csv" module that makes this trivially easy: > I supposed it had one. Obviously, I've never used it myself, otherwise I would be sure about its existence. Nice to know about it, although I assume that for many data transfers it will not be painless if you need several escapes, when CSV starts to become complicated it starts to fail because of quirky and naive parsers.