10000 gh-80480: Emit DeprecationWarning for array's 'u' type code by hugovk · Pull Request #95760 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-80480: Emit DeprecationWarning for array's 'u' type code #95760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
< 8000 /details-menu>
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
Merge remote-tracking branch 'upstream/main' into 80480-deprecate-arr…
…ay-u
  • Loading branch information
hugovk committed Jun 4, 2023
commit 115afccf7a4023500717a87661de5020d1b079f7
1 change: 1 addition & 0 deletions Doc/library/array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Notes:
``Py_UNICODE`` is alias of ``wchar_t`` since Python 3.3.

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


The actual representation of values is determined by the machine architecture
Expand Down
5 changes: 5 additions & 0 deletions Lib/test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,11 @@ def test_typecode_u_deprecation(self):
array.array("u")


class UCS4Test(UnicodeTest):
typecode = 'w'
minitemsize = 4


class NumberTest(BaseTest):

def test_extslice(self):
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0