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


Groups > comp.lang.python > #48963

Re: n00b question on spacing

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.038
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'mrab': 0.05; 'plenty': 0.07; 'string': 0.09; 'subject:question': 0.10; '1.)': 0.16; 'enough.': 0.16; 'received:74.208.4.195': 0.16; 'singular': 0.16; 'surprising': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'header:User- Agent:1': 0.23; 'certainly': 0.24; 'format,': 0.24; 'string,': 0.24; '(or': 0.24; 'handling': 0.26; 'values': 0.27; 'header:In- Reply-To:1': 0.27; 'words': 0.29; 'needed.': 0.30; 'languages': 0.32; 'guess': 0.33; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'thanks': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'dave': 0.60; 'numbers': 0.61; 'such': 0.63; 'more': 0.64; 'different': 0.65; 'received:74.208': 0.68; 'country': 0.77; 'ending': 0.78; 'angel': 0.91; 'from.': 0.93
Date Sat, 22 Jun 2013 21:35:34 -0400
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6
MIME-Version 1.0
To python-list@python.org
Subject Re: n00b question on spacing
References <CAJ=2b07ETuSuo2+3Xu6vMOJA+q1JwUFTezO3LaYLG8wXd+FLBQ@mail.gmail.com> <51C4D2FF.8000709@digipen.edu> <mailman.3692.1371908252.3114.python-list@python.org> <51870913-c348-4807-bc25-aa7c8fbf0001@googlegroups.com> <CAPTjJmotX6GWyA_VV3FKvxTMBp2OZT6nOk=1PSvyR6veg1Ek_w@mail.gmail.com> <51C63334.2080805@davea.name> <CAPTjJmoVsJ6ZkDfbG=Yzvh28_0oUSojFG6gXmm7q=5stDLt_Ew@mail.gmail.com> <51C639A5.5070600@davea.name> <51C64D78.7090709@mrabarnett.plus.com>
In-Reply-To <51C64D78.7090709@mrabarnett.plus.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:QWwnfkn4cBrilM1RDfRma2l+0q/xDElYCr4FZXIgNKE DykyAXmghnYFoIyg61LkKYuo4U3r9q2X14Eh8YuP/A+eqKXBzz GHTuKu6wrNmAsMVcP6wY/MBfCKZczGpGOYdl5QdGhhs3ER3InQ FwcncGd20uTJ2Jbskl4qt5sO1mKL37WHnY0IM/YoZ752Imlo8d /YVnCyTgT4YUQlbBOmZ9gQTfYMwMXA/W8uNz3TgU6TwcmIA+mc K3XaQovxC/lJ8FWrHKVqFwiqBiYla2BVc0fYd54ayFVsffV+uN mriAa5TENEtYemdEQ+jEuirpCF88FvWTQmHeYDs3o9V4K+7GZc wetEd2hgBSgzF8wnCHc0=
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.3719.1371951350.3114.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371951350 news.xs4all.nl 15891 [2001:888:2000:d::a6]:36894
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48963

Show key headers only | View raw


On 06/22/2013 09:20 PM, MRAB wrote:
> On 23/06/2013 00:56, Dave Angel wrote:
      <SNIP>
>>
>> Certainly the reorderability of the format string is significant.  Not
>> only can it be reordered, but more than one instance of some of the
>> values is permissible if needed.  (What's missing is a decent handling
>> of such things as singular/plural, where you want a different version
>> per country of one (or a few) words from the format string, based on
>> whether a value is exactly 1.)
>>
> [snip]
> One vs not-one isn't good enough. Some languages use the singular with
> any numbers ending in '1'. Some languages have singular, dual, and
> plural. Etc. It's surprising how inventive people can be! :-)
>

And there are plenty more where that came from.  Thanks for the reminder.

I guess instead of a format, we need a DWIM.

-- 
DaveA

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


Thread

Re: n00b question on spacing Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-22 14:36 +0100
  Re: n00b question on spacing Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-22 08:24 -0700
    Re: n00b question on spacing Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-22 16:40 +0100
      Re: n00b question on spacing Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-22 08:55 -0700
        Re: n00b question on spacing Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-22 17:11 +0100
    Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 09:12 +1000
      Re: n00b question on spacing Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-22 17:48 -0700
        Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 12:26 +1000
    Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 19:28 -0400
    Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 09:37 +1000
    Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 19:56 -0400
    Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 10:27 +1000
    Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 20:46 -0400
    Re: n00b question on spacing MRAB <python@mrabarnett.plus.com> - 2013-06-23 02:20 +0100
      Re: n00b question on spacing Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-23 02:58 +0000
        Re: n00b question on spacing Roy Smith <roy@panix.com> - 2013-06-22 23:12 -0400
          Re: n00b question on spacing Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-23 03:22 +0000
            Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 13:36 +1000
            Re: n00b question on spacing Roy Smith <roy@panix.com> - 2013-06-23 09:43 -0400
        Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 14:09 +1000
    Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 21:35 -0400
    Re: n00b question on spacing Terry Reedy <tjreedy@udel.edu> - 2013-06-23 11:40 -0400

csiph-web