python-dev
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Python-Dev] PEP 376 P.J. Eby Mon Jun 22 12:00:57 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 distributionthat 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.
_______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexiscircle%40gmail.com
- [Python-Dev] PEP 376 Tarek Ziadé
- Re: [Python-Dev] PEP 376 Antoine Pitrou
- Re: [Python-Dev] PEP 376 Tarek Ziadé
- Message not available
- Re: [Python-Dev] PEP 376 P.J. Eby <=
- Re: [Python-Dev] PEP 376 Tarek Ziadé
- Re: [Python-Dev] PEP 376 Kevin Teague
- Re: [Python-Dev] PEP 376 Tarek Ziadé
- Re: [Python-Dev] PEP 376 Nick Coghlan
- Re: [Python-Dev] PEP 376 Sridhar Ratnakumar
- Re: [Python-Dev] PEP 376 Antoine Pitrou
- Re: [Python-Dev] PEP 376 Tarek Ziadé
- Message not available
- Re: [Python-Dev] PEP 376 P.J. Eby