Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bump removal for Python 3.16
  • Loading branch information
hugovk committed Jun 4, 2023
commit c9637c928203e40d021c188bef54409fd9db5d0d
2 changes: 1 addition & 1 deletion Doc/library/array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Notes:
``Py_UNICODE``. This change doesn't affect its behavior because
``Py_UNICODE`` is alias of ``wchar_t`` since Python 3.3.

.. deprecated-removed:: 3.3 3.15
.. deprecated-removed:: 3.3 3.16
Please migrate to ``'w'`` typecode.


Expand Down
5 changes: 4 additions & 1 deletion Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ Pending Removal in Python 3.15
They will be removed in Python 3.15.
Comment thread
hugovk marked this conversation as resolved.
(Contributed by Victor Stinner in :gh:`105096`.)

Pending Removal in Python 3.16
------------------------------
Comment thread
hugovk marked this conversation as resolved.
Outdated

* :mod:`array`'s ``'u'`` format code, deprecated in docs since Python 3.3,
emits :exc:`DeprecationWarning` since 3.13
and will be removed in Python 3.15.
and will be removed in Python 3.16.
Comment thread
hugovk marked this conversation as resolved.
(contributed by Hugo van Kemenade in :gh:`80480`)

Removed
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def setUp(self):
warnings.filterwarnings(
"ignore",
message="The 'u' type code is deprecated and "
"will be removed in Python 3.15",
"will be removed in Python 3.16",
category=DeprecationWarning)

def test_error(self):
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,6 @@ def test_float_write(self):
fileobj.seek(0)
self.assertEqual(fileobj.read(), expected)

@warnings_helper.ignore_warnings(category=DeprecationWarning) # gh-80480 array('u')
def test_char_write(self):
import array, string
a = array.array('w', string.ascii_letters)
Expand Down
2 changes: 1 addition & 1 deletion Modules/arraymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (c == 'u') {
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"The 'u' type code is deprecated and "
"will be removed in Python 3.15",
"will be removed in Python 3.16",
1)) {
return NULL;
}
Expand Down