Message108794
| Author |
ronaldoussoren |
| Recipients |
ezio.melotti, ijmorlan, loewis, ned.deily, ronaldoussoren |
| Date |
2010年06月27日.14:40:49 |
| SpamBayes Score |
4.758654e-06 |
| Marked as misclassified |
No |
| Message-id |
<1277649653.56.0.26969412544.issue3485@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The comment is wrong, os.path.normcase should not return s.lower(), as the other issue notes the case sensitivity is filesystem dependent.
Returning s.lower() will break code when dealing with paths that refer to an NFS share on a Linux server, or to a path on a local case sensitive file system.
IMHO The comment in posixpath should be changed to something like this:
# On MacOS X most but not all filesystems are case sensitive, which
# means that using normcase(p1) != normcase(p2) doesn't necessarily mean
# that the paths refer to different files.
The current comment gives the impression that a trivial should be applied, which isn't true. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年06月27日 14:40:54 | ronaldoussoren | set | recipients:
+ ronaldoussoren, loewis, ijmorlan, ned.deily, ezio.melotti |
| 2010年06月27日 14:40:53 | ronaldoussoren | set | messageid: <1277649653.56.0.26969412544.issue3485@psf.upfronthosting.co.za> |
| 2010年06月27日 14:40:52 | ronaldoussoren | link | issue3485 messages |
| 2010年06月27日 14:40:50 | ronaldoussoren | create |
|