Style question -- plural of class name?

Neil Cerutti neilc at norwich.edu
Thu May 9 13:28:41 EDT 2013


On 2013-05-09, Jussi Piitulainen <jpiitula at ling.helsinki.fi> wrote:
> Neil Cerutti writes:
>> 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".
>
> Like "strings" would be "foo entries". Which might work well.
>
> (I mean, isn't the class named "str"?)

Yeah, that's not such a good Python example. I used it to replace
"chars" and felt good at the time. ;)

-- 
Neil Cerutti



More information about the Python-list mailing list