Message292993
The function os.path.commonprefix computes the longest prefix of strings (any iterable, actually), regardless of their meaning as paths.
I do not see any reason to use this function for paths, and keeping it in the os.path module makes it prone to be confused with os.path.commonpath (which was introduced in Python 3.5).
I believe making this function raise a DeprecationWarning would help avoid having this kind of bugs. |
|
Date |
User |
Action |
Args |
2017-05-04 16:02:33 | Valentin.Lorentz | set | recipients:
+ Valentin.Lorentz |
2017-05-04 16:02:33 | Valentin.Lorentz | set | messageid: <1493913753.36.0.555235038331.issue30267@psf.upfronthosting.co.za> |
2017-05-04 16:02:33 | Valentin.Lorentz | link | issue30267 messages |
2017-05-04 16:02:33 | Valentin.Lorentz | create | |
|