[Python-3000] Path Reform: Get the ball rolling
Talin
talin at acm.org
Wed Nov 1 08:41:41 CET 2006
Mike Orr wrote:
> Talin wrote:
>> 1) Does os.path need to be refactored at all?
>
> Yes. Functions are scattered arbitrarily across six modules: os,
> os.path, shutil, stat, glob, fnmatch. You have to search through five
> scattered doc pages in the Python library to find your function, plus
> the os module doc is split into five sections. You may think
> 'shlutil' has to do with shells, not paths. shutil.copy2 is
> riduculously named: what's so "2" about it? Why is 'split' in os.path
> but 'stat' and 'mkdir' and 'remove' are in os? Don't they all operate
> on paths?
'stat' and 'mkdir' do not operate on paths. To my mind, that's kind of
like saying that "toupper" and "encrypt" and "SQLObject.select" should
all go together, because they all operate on strings.
-- Talin
More information about the Python-3000
mailing list