[Python-ideas] [PEP8] Predicate consistency
Marco Buttu
marco.buttu at gmail.com
Fri Feb 6 09:10:27 CET 2015
On 06/02/2015 09:06, Marco Buttu wrote:
>
>> And beyond your own example, "is_greater_than_one" or
>> "can_fit_on_filesystem" seem like they need underscores, while
>> "dotwice" seems fine without.
>
> I said the opposite: is_greather_then_one() should have unserscores,
> and as the PEP8 says, the naming rule is the same for functions and
> methods. In the standard library we do not have any can_* function or
> method, but if in the future we will have one, then yes, I propose it
> should be consistent with the "predicate rule" (no underscores).
Sorry, I mean: is_greather_then_one() should *not* have unserscores
--
Marco Buttu
INAF-Osservatorio Astronomico di Cagliari
Via della Scienza n. 5, 09047 Selargius (CA)
Phone: 070 711 80 217
Email: mbuttu at oa-cagliari.inaf.it
More information about the Python-ideas
mailing list