[Python-Dev] The path module PEP (original) (raw)
Ian Bicking ianb at colorstudy.com
Wed Jan 25 00:36:36 CET 2006
- Previous message: [Python-Dev] The path module PEP
- Next message: [Python-Dev] The path module PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gustavo J. A. M. Carneiro wrote:.
def splitall(self): ... def relpath(self): ... def relpathto(self, dest): ... [...etc...] If we wanted to take PEP 8 seriously, those method names should be changed to wordsseparatedbyunderscores.
There's a (unspecified?) convention that many standard/core objects or objects in the standard library use squishedwords for methods. has_key is an anomoly, not the norm.
Also, many of these are direct translations of methods from os.path, and so the names offer familiarity.
-- Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
- Previous message: [Python-Dev] The path module PEP
- Next message: [Python-Dev] The path module PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]