[issue10395] os.path.commonprefix broken by design
Martin v. Löwis
report at bugs.python.org
Fri Nov 12 20:35:37 CET 2010
Martin v. Löwis <martin at v.loewis.de> added the comment:
This goes back to issue400788 and
http://mail.python.org/pipermail/python-dev/2000-July/005897.html
http://mail.python.org/pipermail/python-dev/2000-August/008385.html
Skip changed it to do something meaningful (more than ten years ago), Mark Hammond complained that it was backwards incompatible, Tim Peters argued that you shouldn't change a function if the documented behavior matches the implementation, and Skip reverted the change and added more documentation to make the actual behavior more explicit.
It may be useless, but it's certainly not broken. In addition, it's very likely that applications of it rely on the very semantics that it has.
In any case, anybody proposing a change should go back and re-read the old threads.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10395>
_______________________________________
More information about the Python-bugs-list
mailing list