]> granicus.if.org Git - python/commitdiff
Issue #13072: The array module's 'u' format code is now deprecated and
authorStefan Krah <skrah@bytereef.org>
Fri, 24 Aug 2012 18:14:12 +0000 (20:14 +0200)
committerStefan Krah <skrah@bytereef.org>
Fri, 24 Aug 2012 18:14:12 +0000 (20:14 +0200)
will be removed in Python 4.0.

Doc/library/array.rst
Doc/whatsnew/3.3.rst
Misc/NEWS

index 2eb926c5345a21b7099da22bee26ed479a07d5c7..8f6943a240af0a08a6fde77ca856eb96cd1785ec 100644 (file)
@@ -47,10 +47,15 @@ defined:
 Notes:
 
 (1)
-   The ``'u'`` type code corresponds to Python's unicode character
+   The ``'u'`` type code corresponds 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.
 
+   ``'u'`` will be removed together with the rest of the :c:type:`Py_UNICODE`
+   API.
+
+   .. deprecated-removed:: 3.3 4.0
+
 (2)
    The ``'q'`` and ``'Q'`` type codes are available only if
    the platform C compiler used to build Python supports C :c:type:`long long`,
index 90ce5a6a817788157218cf22aea084dbc3d9cb2a..968e788d77713d3921234f7b9f02cae1431e2a30 100644 (file)
@@ -1841,6 +1841,13 @@ Encoders:
    :c:func:`PyUnicode_TransformDecimalToASCII`
 
 
+Deprecated features
+-------------------
+
+The :mod:`array` module's ``'u'`` format code is now deprecated and will be
+removed in Python 4 together with the rest of the (:c:type:`Py_UNICODE`) API.
+
+
 Porting to Python 3.3
 =====================
 
index 3521001b2d0716641edcbd167210876569a793c3..2f78922e617e5f7f95df040f26f772edd87854a1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #13072: The array module's 'u' format code is now deprecated and
+  will be removed in Python 4.0.
+
 - Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs.
 
 - Issue #15776: Allow pyvenv to work in existing directory with --clean.