[Python-ideas] [PEP8] Predicate consistency (original) (raw)
Marco Buttu marco.buttu at gmail.com
Thu Feb 5 23:36:50 CET 2015
- Previous message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Next message: [Python-ideas] [PEP8] Predicate consistency
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all, the PEP 8 says that function and method names should be lowercase, with words separated by underscores as necessary to improve readability. Maybe it could be a good idea to specify in the PEP8 that the predicates should not be separated by underscores, because it is pretty annoying to see this kind of inconsistency:
str.isdigit()
float.is_integer()
-- 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
- Previous message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Next message: [Python-ideas] [PEP8] Predicate consistency
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]