Pre-PEP: new Path class

Michael T. Babcock mike at triplepc.com
Tue Jan 6 10:23:01 EST 2004


>
>
>So you're saying that a file object or a directory object "has-a"
>path object? Sounds right to me.
>  
>

Correct; a path object should be a path, not a file, not a directory, 
but a path.

I see comments about allowing 'touch' or 'chmod' or other such 
file-centric methods.  I can even understand 'chmod' (in Unix 
environments) since all path objects have permissions, but this would be 
platform specific anyway.  What's wrong with something like 
posix.chmod(path_object, permissions)?

Anyway, enough of my rant for the moment.
-- 
Michael T. Babcock




More information about the Python-list mailing list