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 words_separated_by_underscores. 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4