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


Groups > comp.lang.python > #51712

Re: Editing tabular data [was: PEP8 79 char max]

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; '(at': 0.04; 'source,': 0.04; 'alter': 0.09; 'subject: [': 0.09; "(i'll": 0.16; 'csv': 0.16; 'do)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'spreadsheet.': 0.16; 'subject:tabular': 0.16; 'tabs': 0.16; 'two.': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'pointed': 0.19; 'work,': 0.20; '>>>': 0.22; 'example': 0.22; 'putting': 0.22; '31,': 0.24; 'align': 0.24; 'simpler': 0.24; 'skip': 0.24; 'source': 0.25; 'tables': 0.26; '(for': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; '[1]': 0.29; "doesn't": 0.30; 'compared': 0.30; 'message- id:@mail.gmail.com': 0.30; 'along': 0.30; "i'm": 0.30; 'gives': 0.31; 'code': 0.31; 'that.': 0.31; 'boundary': 0.31; 'overhead': 0.31; 'file': 0.32; 'this.': 0.32; 'stuff': 0.32; 'worked': 0.33; 'guess': 0.33; 'table': 0.34; 'maybe': 0.34; "can't": 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'subject:data': 0.36; 'too': 0.37; 'two': 0.37; 'starting': 0.37; 'somebody': 0.38; 'subject:]': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'rather': 0.38; 'bad': 0.39; 'embedded': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'ago,': 0.61; "you've": 0.63; 'more': 0.64; 'different': 0.65; 'due': 0.66; 'jul': 0.74; 'glad': 0.83; 'clearer': 0.84; 'distinguish': 0.84; 'improvement': 0.84; 'layout.': 0.84; 'moves': 0.84; 'spreadsheet': 0.84; 'edwards': 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=7rI0RSCrU6e4cbAyuwZqKsH8VuD/aTthnmm4bxSZJbE=; b=LSi2xl0STwMDVqbW9N19vQkvYtdYYygj3LPjxcFLaJ1glGWT2Gm7HM3ZDIH7pI09oy PRoNNJDUCXes9emXO8/HYstqgAOE1YcvYgNScc9tOS3gGbwJ64kkPuemeg86AFb2ysd8 kGEdPAkketluW35iF8tQaXUwTkALiYsRetramGJDLqzPRbNnALvsu5900YU5v8Z0OPZ4 bWU9VVWKFm7vqWUd10ZoqE9kJ5u/D2w/E5AJfYYnSOiFVHtujh0slTqAJ5OB6N6cS8Oa FVHnkVtmw7FJY6vu4W1lBjaJJQJFDg3Da5OQed6mnfVoEIA/X4GadyrleH52dgodp000 5iog==
MIME-Version 1.0
X-Received by 10.58.249.236 with SMTP id yx12mr29478141vec.25.1375318213258; Wed, 31 Jul 2013 17:50:13 -0700 (PDT)
In-Reply-To <ktbn0a$i7d$2@reader1.panix.com>
References <mailman.49.1375295978.1251.python-list@python.org> <ktbn0a$i7d$2@reader1.panix.com>
Date Thu, 1 Aug 2013 01:50:13 +0100
Subject Re: Editing tabular data [was: PEP8 79 char max]
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.61.1375318215.1251.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375318215 news.xs4all.nl 15988 [2001:888:2000:d::a6]:55247
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51712

Show key headers only | View raw


On Wed, Jul 31, 2013 at 8:02 PM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2013-07-31, Skip Montanaro <skip@pobox.com> wrote:
>>> I don't understand.  That just moves them to a different file --
>>> doesn't it?  You've still got to deal with editing a large table of
>>> data (for example when I want to add instructions to your assembler).
>>
>> My guess is it would be more foolproof to edit that stuff with a
>> spreadsheet.
>
> Many years ago, I worked with somebody who used a spreadsheet like
> that.  I tried it and found it to be way too cumbersome. The overhead
> involved of putting tables in to slew of different files and starting
> up LibreOffice to edit/view them is huge compared to just editing them
> with emacs in a file along with the source code.  Maybe my computer is
> too old/slow.  Maybe it's just due to how bad I am at Excel/LibreOffice...

I'm glad someone else feels that way!

At work, we have a number of CSV files (at my boss's insistence; I
would much rather they be either embedded in the source, or in some
clearer and simpler format) which I like to manipulate in SciTE,
rather than OO/LibreOffice. (I'll not distinguish those two. Far as
I'm concerned, they're one product with two names.) My boss can't
understand why I do this. I can't understand why he objects to having
to edit code files to alter internal data. I have pointed him to [1]
but to no avail.

The one thing I would do, though, is align with tabs rather than
spaces. That gives you an 8:1 (if you keep your tabs at eight, which I
do) improvement in maintainability, because edits that don't cross a
boundary don't require fiddling with the layout.

[1] http://thedailywtf.com/Articles/Soft_Coding.aspx

ChrisA

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


Thread

Editing tabular data [was: PEP8 79 char max] Skip Montanaro <skip@pobox.com> - 2013-07-31 13:39 -0500
  Re: Editing tabular data [was: PEP8 79 char max] Grant Edwards <invalid@invalid.invalid> - 2013-07-31 19:02 +0000
    Re: Editing tabular data [was: PEP8 79 char max] Skip Montanaro <skip@pobox.com> - 2013-07-31 14:35 -0500
    Re: Editing tabular data [was: PEP8 79 char max] Chris Angelico <rosuav@gmail.com> - 2013-08-01 01:50 +0100
      Re: Editing tabular data [was: PEP8 79 char max] Neil Cerutti <neilc@norwich.edu> - 2013-08-01 14:04 +0000
      Re: Editing tabular data [was: PEP8 79 char max] wxjmfauth@gmail.com - 2013-08-02 02:15 -0700
    Re: Editing tabular data Ben Finney <ben+python@benfinney.id.au> - 2013-08-02 16:35 +1000
      Re: Editing tabular data rusi <rustompmody@gmail.com> - 2013-09-03 09:58 -0700
    LibreOffice (was: Editing tabular data) Ben Finney <ben+python@benfinney.id.au> - 2013-08-02 17:14 +1000
    Re: LibreOffice (was: Editing tabular data) Chris Angelico <rosuav@gmail.com> - 2013-08-02 10:37 +0100
      Re: LibreOffice (was: Editing tabular data) Grant Edwards <invalid@invalid.invalid> - 2013-08-02 14:00 +0000
    Re: LibreOffice Terry Reedy <tjreedy@udel.edu> - 2013-08-02 21:26 -0400
    Re: LibreOffice David Robinow <drobinow@gmail.com> - 2013-08-03 11:08 -0400
  Re: Editing tabular data [was: PEP8 79 char max] "Rhodri James" <rhodri@wildebst.demon.co.uk> - 2013-07-31 20:03 +0100
    Re: Editing tabular data [was: PEP8 79 char max] Neil Cerutti <neilc@norwich.edu> - 2013-07-31 19:07 +0000
  Re: Editing tabular data [was: PEP8 79 char max] Wanderer <wanderer@dialup4less.com> - 2013-07-31 13:37 -0700
    Re: Editing tabular data [was: PEP8 79 char max] Skip Montanaro <skip.montanaro@gmail.com> - 2013-07-31 18:40 -0500

csiph-web