diff options
author | Victor Stinner <vstinner@python.org> | 2022-10-18 15:52:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 15:52:31 (GMT) |
commit | db03c8066a6b12fa23618f9add0eb795936726b4 (patch) | |
tree | 71d35cac37736188bbe8b046aab657b0892be1de /Misc/NEWS.d | |
parent | 9da5215000920870eeddd78af92da4c98099706c (diff) | |
download | cpython-db03c8066a6b12fa23618f9add0eb795936726b4.zip cpython-db03c8066a6b12fa23618f9add0eb795936726b4.tar.gz cpython-db03c8066a6b12fa23618f9add0eb795936726b4.tar.bz2 |
gh-98393: os module reject bytes-like, only accept bytes (#98394)
The os module and the PyUnicode_FSDecoder() function no longer accept
bytes-like paths, like bytearray and memoryview types: only the exact
bytes type is accepted for bytes strings.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/C API/2022-10-18-16-16-27.gh-issue-98393.55u4BF.rst | 3 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-10-18-15-41-37.gh-issue-98393.vhPu4L.rst | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-10-18-16-16-27.gh-issue-98393.55u4BF.rst b/Misc/NEWS.d/next/C API/2022-10-18-16-16-27.gh-issue-98393.55u4BF.rst new file mode 100644 index 0000000..658f587 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2022-10-18-16-16-27.gh-issue-98393.55u4BF.rst @@ -0,0 +1,3 @@ +The :c:func:`PyUnicode_FSDecoder` function no longer accepts bytes-like +paths, like :class:`bytearray` and :class:`memoryview` types: only the exact +:class:`bytes` type is accepted for bytes strings. Patch by Victor Stinner. diff --git a/Misc/NEWS.d/next/Library/2022-10-18-15-41-37.gh-issue-98393.vhPu4L.rst b/Misc/NEWS.d/next/Library/2022-10-18-15-41-37.gh-issue-98393.vhPu4L.rst new file mode 100644 index 0000000..54e45bb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-10-18-15-41-37.gh-issue-98393.vhPu4L.rst @@ -0,0 +1,3 @@ +The :mod:`os` module no longer accepts bytes-like paths, like +:class:`bytearray` and :class:`memoryview` types: only the exact +:class:`bytes` type is accepted for bytes strings. Patch by Victor Stinner. |