[Python-ideas] [PEP8] Predicate consistency

Marco Buttu marco.buttu at gmail.com
Thu Feb 5 23:36:50 CET 2015


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



More information about the Python-ideas mailing list