[Python-Dev] The path module PEP

Fredrik Lundh fredrik at pythonware.com
Wed Jan 25 00:25:21 CET 2006


Gustavo J. A. M. Carneiro wrote:

> >         # Operations on path strings.
> >         def abspath(sef): ...
> >         def normcase(self): ...
> >         def normpath(self): ...
> >         def realpath(self): ...
> >         def expanduser(self): ...
> >         def expandvars(self): ...
> >         def dirname(self): ...
> >         def basename(self): ...
> >         def expand(self): ...
> >         def splitpath(self): ...
> >         def splitdrive(self): ...
> >         def splitext(self): ...
> >         def stripext(self): ...
> >         def splitunc(self): ... [1]
> >         def joinpath(self, *args): ...
> >         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.
>   And BTW, what does splitunc do?  It really should have a more
> descriptive name.

when did you last use the os.path module ?

</F>





More information about the Python-Dev mailing list