This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Valentin.Lorentz
Recipients Valentin.Lorentz
Date 2017-05-04.16:02:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493913753.36.0.555235038331.issue30267@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-04 16:02:33Valentin.Lorentzsetrecipients: + Valentin.Lorentz
2017-05-04 16:02:33Valentin.Lorentzsetmessageid: <1493913753.36.0.555235038331.issue30267@psf.upfronthosting.co.za>
2017-05-04 16:02:33Valentin.Lorentzlinkissue30267 messages
2017-05-04 16:02:33Valentin.Lorentzcreate