[Python-checkins] cpython (3.4): whatsnew: cp273 codec (#10907797)

larry.hastings python-checkins at python.org
Mon Mar 17 07:33:27 CET 2014


http://hg.python.org/cpython/rev/f7d093a4ebf6
changeset:   89792:f7d093a4ebf6
branch:      3.4
user:        R David Murray <rdmurray at bitdance.com>
date:        Fri Mar 07 21:00:34 2014 -0500
summary:
  whatsnew: cp273 codec (#10907797)

Also updated the docs and added the aliases mentioned by the
references.

files:
  Doc/library/codecs.rst   |  4 ++++
  Doc/whatsnew/3.4.rst     |  3 +++
  Lib/encodings/aliases.py |  5 +++++
  3 files changed, 12 insertions(+), 0 deletions(-)


diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -971,6 +971,10 @@
 +-----------------+--------------------------------+--------------------------------+
 | cp037           | IBM037, IBM039                 | English                        |
 +-----------------+--------------------------------+--------------------------------+
+| cp273           | 273, IBM273, csIBM273          | German                         |
+|                 |                                |                                |
+|                 |                                | .. versionadded:: 3.4          |
++-----------------+--------------------------------+--------------------------------+
 | cp424           | EBCDIC-CP-HE, IBM424           | Hebrew                         |
 +-----------------+--------------------------------+--------------------------------+
 | cp437           | 437, IBM437                    | English                        |
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -364,6 +364,9 @@
   Contributed by Victor Stinner, Kang-Hao (Kenny) Lu and Serhiy Storchaka in
   :issue:`12892`.
 
+* New EBCDIC :ref:`codec <standard-encodings>` ``cp273``.  (Contributed by
+  Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)
+
 
 
 New Modules
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py
--- a/Lib/encodings/aliases.py
+++ b/Lib/encodings/aliases.py
@@ -109,6 +109,11 @@
     '1258'               : 'cp1258',
     'windows_1258'       : 'cp1258',
 
+    # cp273 codec
+    '273'                : 'cp273',
+    'ibm273'             : 'cp273',
+    'csibm273'           : 'cp273',
+
     # cp424 codec
     '424'                : 'cp424',
     'csibm424'           : 'cp424',

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list