[Python-Dev] Path PEP: some comments (equality)
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Feb 23 05:27:28 CET 2006
More information about the Python-Dev mailing list
Thu Feb 23 05:27:28 CET 2006
- Previous message: [Python-Dev] Path PEP: some comments (equality)
- Next message: [Python-Dev] Path PEP: some comments (equality)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mark Mc Mahon wrote: > Should the path class implement an __eq__ method that might do some of > the following things: > - Get the absolute path of both self and the other path I don't think that any path operations should implicitly touch the file system like this. The paths may not represent real files or may be for a system other than the one the program is running on. > - normcase both Not sure about this one either. When dealing with remote file systems, it can be hard to know whether a path will be interpreted as case-sensitive or not. This can be a problem even with local filesystems, e.g. on MacOSX where you can have both HFS (case-insensitive) and Unix (case-sensitive) filesystems mounted. -- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | Carpe post meridiam! | Christchurch, New Zealand | (I'm not a morning person.) | greg.ewing at canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] Path PEP: some comments (equality)
- Next message: [Python-Dev] Path PEP: some comments (equality)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list