[New-bugs-announce] [issue25417] Minor typo in Path.samefile docstring

Antony Lee report at bugs.python.org
Fri Oct 16 02:17:06 CEST 2015


New submission from Antony Lee:

The output of pydoc for Path.samefile currently reads

pathlib.Path.samefile = samefile(self, other_path)
    Return whether `other_file` is the same or not as this file.
    (as returned by os.path.samefile(file, other_file)).

It should arguably be something like

pathlib.Path.samefile = samefile(self, other_path)
    Return whether `other_path` is the same or not as this file.
    (as returned by os.path.samefile(file, other_file)).

or

pathlib.Path.samefile = samefile(self, other_path)
    Return whether `other_path` is the same or not as this file.
    (as returned by os.path.samefile(str(self), str(other_path))).

----------
components: Library (Lib)
messages: 253066
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: Minor typo in Path.samefile docstring
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25417>
_______________________________________


More information about the New-bugs-announce mailing list