whatsnew: os.path.samestat on windows, keyword defaults evaluation order.
authorR David Murray <rdmurray@bitdance.com>
Wed, 12 Feb 2014 05:02:34 +0000 (00:02 -0500)
committerR David Murray <rdmurray@bitdance.com>
Wed, 12 Feb 2014 05:02:34 +0000 (00:02 -0500)
Doc/library/os.path.rst
Doc/whatsnew/3.4.rst

index 269856c628467000ec295b6f17562db4121b5e64..b1ad2141f89730179fe61c413ce6f2da0e34cb9e 100644 (file)
@@ -251,7 +251,7 @@ the :mod:`glob` module.)
 .. function:: samefile(path1, path2)
 
    Return ``True`` if both pathname arguments refer to the same file or directory.
-   On Unix, this is determined by the device number and i-node number and raises an
+   This is determined by the device number and i-node number and raises an
    exception if a :func:`os.stat` call on either pathname fails.
 
    Availability: Unix, Windows.
index 06adecd6c265a878ce45deacc7e660c54d2b8697..dd7ec26135cb86610f641594c0e3f81322b3ea48 100644 (file)
@@ -955,6 +955,10 @@ the :func:`multiprocessing.cpu_count` function (which is now implemented in
 terms of the new :mod:`os` function).  (Contributed by Trent Nelson, Yogesh
 Chaudhari, Victor Stinner, and Charles-François Natali in :issue:`17914`.)
 
+:func:`os.path.samestat` is now available on the Windows platform (and the
+:func:`os.path.samefile` implementation is now shared between Unix and
+Windows).  (Contributed by Brian Curtin in :issue:`11939`.)
+
 
 pdb
 ---
@@ -1752,9 +1756,13 @@ Changes in the Python API
   special method returned one.  This now raises a :exc:`TypeError`.
   (:issue:`16290`.)
 
-* The :class:`int` constructor in 3.2 and 3.3 erroneously accept :class:`float`
+* The :class:`int` constructor in 3.2 and 3.3 erroneously accepts :class:`float`
   values for the *base* parameter.  It is unlikely anyone was doing this, but
-  if so, it will now raise a :exc:`TypeError`  (:issue:`16772`).
+  if so, it will now raise a :exc:`TypeError` (:issue:`16772`).
+
+* Defaults for keyword-only arguments are now evaluated *after* defaults for
+  regular keyword arguments, instead of before.  Hopefully no one wrote any
+  code that depends on the previous buggy behavior (:issue:`16967`).
 
 
 Changes in the C API