global _can_symlink
if _can_symlink is not None:
return _can_symlink
+ symlink_path = TESTFN + "can_symlink"
try:
- os.symlink(TESTFN, TESTFN + "can_symlink")
+ os.symlink(TESTFN, symlink_path)
can = True
- except (OSError, NotImplementedError):
+ os.remove(symlink_path)
+ except (OSError, NotImplementedError, AttributeError):
can = False
_can_symlink = can
return can
Core and Builtins
-----------------
+ - Issue #12084: os.stat on Windows now works properly with relative symbolic
+ links when called from any directory.
+
+- Issue #12265: Make error messages produced by passing an invalid set of
+ arguments to a function more informative.
+
+- Issue #12225: Still allow Python to build if Python is not in its hg repo or
+ mercurial is not installed.
+
- Issue #1195: my_fgets() now always clears errors before calling fgets(). Fix
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.