Visitar URL original
bpo-36346: array: Don't use deprecated APIs by methane · Pull Request #19653 · python/cpython · GitHub
Skip to content
Merged
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
update doc
  • Loading branch information
methane committed Apr 23, 2020
commit 1d9569ae7acfffe726dcd94f6890c8165d750e9b
7 changes: 2 additions & 5 deletions Doc/library/array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defined:
+-----------+--------------------+-------------------+-----------------------+-------+
| ``'B'`` | unsigned char | int | 1 | |
+-----------+--------------------+-------------------+-----------------------+-------+
| ``'u'`` | Py_UNICODE | Unicode character | 2 | \(1) |
| ``'u'`` | wchar_t | Unicode character | 2 | \(1) |
+-----------+--------------------+-------------------+-----------------------+-------+
| ``'h'`` | signed short | int | 2 | |
+-----------+--------------------+-------------------+-----------------------+-------+
Expand All @@ -48,13 +48,10 @@ defined:
Notes:

(1)
The ``'u'`` type code corresponds to Python's obsolete unicode character
The ``'u'`` type code had corresponded to Python's obsolete unicode character
(:c:type:`Py_UNICODE` which is :c:type:`wchar_t`). Depending on the
platform, it can be 16 bits or 32 bits.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can copy/paste what you wrote in What's New in Python 3.9 here. The current (1) not doesn't mention in which version it changed. Maybe added a ".. versionchanged:: 3.9" markup.


``'u'`` will be removed together with the rest of the :c:type:`Py_UNICODE`
API.

.. deprecated-removed:: 3.3 4.0
Comment thread
vstinner marked this conversation as resolved.

The actual representation of values is determined by the machine architecture
Expand Down