try:
os.symlink(TESTFN, symlink_path)
can = True
- except (OSError, NotImplementedError):
- os.remove(symlink_path)
+ except (OSError, NotImplementedError, AttributeError):
can = False
+ else:
+ os.remove(symlink_path)
_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.
+
+- Loosen type restrictions on the __dir__ method. __dir__ can now return any
+ sequence, which will be converted to a list and sorted by dir().
+
- Issue #12265: Make error messages produced by passing an invalid set of
arguments to a function more informative.