Style question -- plural of class name?

Neil Cerutti neilc at norwich.edu
Thu May 9 11:14:17 EDT 2013


On 2013-05-08, Denis McMahon <denismfmcmahon at gmail.com> wrote:
> 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.

If there's no chance for confusion between a class named FooEntry
and another named FooEntries, then the first attempt seems best.
Pluralize a class name by following the usual rules, e.g.,
"strings" and "ints".

-- 
Neil Cerutti



More information about the Python-list mailing list