[Python-Dev] PEP 376
P.J. Eby
pje at telecommunity.com
Mon Jun 22 20:48:08 CEST 2009
At 05:42 PM 6/22/2009 +0200, Tarek Ziadé wrote:
>Wouldn't it be better to use the native line terminator on the current
>platform? (someone might want to edit or at least view the file)
>
>
>Good idea, I'll change that,
>
As long as the file is always *read* with "U" mode, so that you can't
mess it up, especially if the install is to a directory shared
between platforms.
>The idea of this API is to find out of a distribution "owns" a file,
>e.g. is the only distribution
>that uses it, so it can be safely removed.
This could equally well be done by ``owners(path)``, returning a
sequence of zero or more items. Any length <> 1 means the file can't
be safely removed. Meanwhile, having the data about all the owners
of a file would also be useful for tools that just want to inspect a
directory's contents, for example, or to detect conflicts and overwrites.
More information about the Python-Dev
mailing list