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


Groups > comp.lang.python > #44971

Re: Style question -- plural of class name?

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.python
Subject Re: Style question -- plural of class name?
Date 2013-05-08 22:40 +0000
Organization A noiseless patient Spider
Message-ID <kmek9m$s0v$1@dont-email.me> (permalink)
References <kmec30$d12$1@panix2.panix.com>

Show all headers | View raw


On Wed, 08 May 2013 16:20:48 -0400, Roy Smith wrote:

> FooEntry is a class.  How would you describe a list of these in a
> docstring?
> 
> "A list of FooEntries"
> 
> "A list of FooEntrys"
> 
> "A list of FooEntry's"
> 
> "A list of FooEntry instances"
> 
> The first one certainly sounds the best, but it seems wierd to change
> the spelling of the class name to make it plural.

I wouldn't use an apostrophe for pluralisation.

The Normal pluralisation of FooEntry would be FooEntries. Who are you 
expecting to read the docstring? English majors, grammar nazis, wikipedia 
editors, programmers, or all 4?

-- 
Denis McMahon, denismfmcmahon@gmail.com

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


Thread

Style question -- plural of class name? roy@panix.com (Roy Smith) - 2013-05-08 16:20 -0400
  Re: Style question -- plural of class name? Skip Montanaro <skip@pobox.com> - 2013-05-08 15:33 -0500
    Re: Style question -- plural of class name? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-09 00:13 +0000
  Re: Style question -- plural of class name? John Downs <john.a.downs@gmail.com> - 2013-05-08 16:37 -0400
  Re: Style question -- plural of class name? Ian Kelly <ian.g.kelly@gmail.com> - 2013-05-08 14:45 -0600
  Re: Style question -- plural of class name? Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-08 22:40 +0000
    Re: Style question -- plural of class name? Neil Cerutti <neilc@norwich.edu> - 2013-05-09 15:14 +0000
      Re: Style question -- plural of class name? Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-05-09 19:43 +0300
        Re: Style question -- plural of class name? Neil Cerutti <neilc@norwich.edu> - 2013-05-09 17:28 +0000
  Re: Style question -- plural of class name? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-08 19:45 -0400
  Re: Style question -- plural of class name? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-09 00:02 +0000
    Re: Style question -- plural of class name? Cameron Simpson <cs@zip.com.au> - 2013-05-09 10:42 +1000
  Re: Style question -- plural of class name? Chris Angelico <rosuav@gmail.com> - 2013-05-09 10:12 +1000
  Re: Style question -- plural of class name? "Colin J. Williams" <cjw@ncf.ca> - 2013-05-08 20:38 -0400
    Re: Style question -- plural of class name? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2013-05-09 12:21 +0200
  Re: Style question -- plural of class name? Robert Kern <robert.kern@gmail.com> - 2013-05-09 18:44 +0100

csiph-web