(original) (raw)
changeset: 78748:9c7515e29219 user: Stefan Krah skrah@bytereef.org date: Fri Aug 24 20:14:12 2012 +0200 files: Doc/library/array.rst Doc/whatsnew/3.3.rst Misc/NEWS description: Issue #13072: The array module's 'u' format code is now deprecated and will be removed in Python 4.0. diff -r 88e041f69fc7 -r 9c7515e29219 Doc/library/array.rst --- a/Doc/library/array.rst Fri Aug 24 19:51:09 2012 +0200 +++ b/Doc/library/array.rst Fri Aug 24 20:14:12 2012 +0200 @@ -47,10 +47,15 @@ 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`, diff -r 88e041f69fc7 -r 9c7515e29219 Doc/whatsnew/3.3.rst --- a/Doc/whatsnew/3.3.rst Fri Aug 24 19:51:09 2012 +0200 +++ b/Doc/whatsnew/3.3.rst Fri Aug 24 20:14:12 2012 +0200 @@ -1841,6 +1841,13 @@ :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 ===================== diff -r 88e041f69fc7 -r 9c7515e29219 Misc/NEWS --- a/Misc/NEWS Fri Aug 24 19:51:09 2012 +0200 +++ b/Misc/NEWS Fri Aug 24 20:14:12 2012 +0200 @@ -32,6 +32,9 @@ 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. /skrah@bytereef.org