Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2167e29

Browse files
committed
whatsnew: os.path.samestat on windows, keyword defaults evaluation order.
1 parent db2d8a4 commit 2167e29

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

Doc/library/os.path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ the :mod:`glob` module.)
251251
.. function:: samefile(path1, path2)
252252

253253
Return ``True`` if both pathname arguments refer to the same file or directory.
254-
On Unix, this is determined by the device number and i-node number and raises an
254+
This is determined by the device number and i-node number and raises an
255255
exception if a :func:`os.stat` call on either pathname fails.
256256

257257
Availability: Unix, Windows.

Doc/whatsnew/3.4.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,10 @@ the :func:`multiprocessing.cpu_count` function (which is now implemented in
955955
terms of the new :mod:`os` function). (Contributed by Trent Nelson, Yogesh
956956
Chaudhari, Victor Stinner, and Charles-François Natali in :issue:`17914`.)
957957

958+
:func:`os.path.samestat` is now available on the Windows platform (and the
959+
:func:`os.path.samefile` implementation is now shared between Unix and
960+
Windows). (Contributed by Brian Curtin in :issue:`11939`.)
961+
958962

959963
pdb
960964
---
@@ -1752,9 +1756,13 @@ Changes in the Python API
17521756
special method returned one. This now raises a :exc:`TypeError`.
17531757
(:issue:`16290`.)
17541758

1755-
* The :class:`int` constructor in 3.2 and 3.3 erroneously accept :class:`float`
1759+
* The :class:`int` constructor in 3.2 and 3.3 erroneously accepts :class:`float`
17561760
values for the *base* parameter. It is unlikely anyone was doing this, but
1757-
if so, it will now raise a :exc:`TypeError` (:issue:`16772`).
1761+
if so, it will now raise a :exc:`TypeError` (:issue:`16772`).
1762+
1763+
* Defaults for keyword-only arguments are now evaluated *after* defaults for
1764+
regular keyword arguments, instead of before. Hopefully no one wrote any
1765+
code that depends on the previous buggy behavior (:issue:`16967`).
17581766

17591767

17601768
Changes in the C API

0 commit comments

Comments
 (0)