[New-bugs-announce] [issue30267] Deprecate os.path.commonprefix
ProgVal
report at bugs.python.org
Thu May 4 12:02:33 EDT 2017
New submission from ProgVal:
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.
----------
components: Library (Lib)
messages: 292993
nosy: Valentin.Lorentz
priority: normal
severity: normal
status: open
title: Deprecate os.path.commonprefix
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30267>
_______________________________________
More information about the New-bugs-announce
mailing list