diff options
author | Brett Cannon <brett@python.org> | 2016-06-10 19:20:49 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-06-10 19:20:49 (GMT) |
commit | 568be63248614a2cdd7666a67ddfd16e817f7db9 (patch) | |
tree | f59d0822885c5185a7dfb464cd443ea8d5696109 /Misc | |
parent | f41b82fb19d1b91f99ab657e4c6a751c44152f12 (diff) | |
download | cpython-568be63248614a2cdd7666a67ddfd16e817f7db9.zip cpython-568be63248614a2cdd7666a67ddfd16e817f7db9.tar.gz cpython-568be63248614a2cdd7666a67ddfd16e817f7db9.tar.bz2 |
Issue #27186: Add os.PathLike support to pathlib.
This adds support both to pathlib.PurePath's constructor as well as
implementing __fspath__(). This removes the provisional status for
pathlib.
Initial patch by Dusty Phillips.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -10,6 +10,8 @@ What's New in Python 3.6.0 alpha 2 Core and Builtins ----------------- +- Issue #27186: Add support for os.PathLike objects to open() (part of PEP 519). + - Issue #27066: Fixed SystemError if a custom opener (for open()) returns a negative number without setting an exception. @@ -36,6 +38,14 @@ Core and Builtins Library ------- +- Issue #27186: Add os.PathLike support to pathlib, removing its provisional + status (part of PEP 519). + +- Issue #27186: Add support for os.PathLike objects to os.fsencode() and + os.fsdecode() (part of PEP 519). + +- Issue #27186: Introduce os.PathLike and os.fspath() (part of PEP 519). + - A new version of typing.py provides several new classes and features: @overload outside stubs, Reversible, DefaultDict, Text, ContextManager, Type[], NewType(), TYPE_CHECKING, and numerous bug @@ -198,12 +208,14 @@ Build Misc ---- -- Issue #17500, and https://github.com/python/pythondotorg/issues/945: Remove +- Issue #17500, and https://github.com/python/pythondotorg/issues/945: Remove unused and outdated icons. C API ----- +- Issue #27186: Add the PyOS_FSPath() function (part of PEP 519). + - Issue #26282: PyArg_ParseTupleAndKeywords() now supports positional-only parameters. |