[Python-ideas] [PEP8] Predicate consistency

Nick Coghlan ncoghlan at gmail.com
Sat Feb 7 01:10:03 CET 2015


On 7 February 2015 at 03:20, Barry Warsaw <barry at python.org> wrote:
> On Feb 06, 2015, at 07:21 AM, Marco Buttu wrote:
>
>>I am not so crazy ;) I am just proposing a clear rule for predicates in order
>>to avoid, _in the future_, inconsistency with the current general rule.
>
> IMHO, there's nothing special about predicates.  All else being equal, new
> APIs would benefit from using underscores between words for all multi-word
> methods.  But sure, there are lots of reasons why some of our APIs don't
> follow that guideline.  Some of those reasons are good, some are not so good
> <wink>.

As one of my co-workers puts it: "sometimes things are the way they
are purely for hysterical raisins"* :)

Cheers,
Nick.

*I'm not sure how well the pun will translate for non-native English
speakers, so I'll be explicit that it sounds a lot like "historical
reasons" when said aloud :)

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list