summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-03-08 02:00:34 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-03-08 02:00:34 (GMT)
commit47d083cf1a5c763346a020e2daf38ccfb3f52dbd (patch)
tree07b013897feebd9da15d12ada819dcf758d1d4ca
parente2684d93e2413a3f7c8dc5a26cb17723c7c51b5d (diff)
downloadcpython-47d083cf1a5c763346a020e2daf38ccfb3f52dbd.zip
cpython-47d083cf1a5c763346a020e2daf38ccfb3f52dbd.tar.gz
cpython-47d083cf1a5c763346a020e2daf38ccfb3f52dbd.tar.bz2
whatsnew: cp273 codec (#10907797)
Also updated the docs and added the aliases mentioned by the references.
-rw-r--r--Doc/library/codecs.rst4
-rw-r--r--Doc/whatsnew/3.4.rst3
-rw-r--r--Lib/encodings/aliases.py5
3 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 843de27..3729dac 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -971,6 +971,10 @@ particular, the following variants typically exist:
+-----------------+--------------------------------+--------------------------------+
| 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
index 796c474..042301f 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -365,6 +365,9 @@ Some smaller changes made to the core Python language are:
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`.)
+
* :class:`bytes`.join() and :class:`bytearray`.join() now accept arbitrary
buffer objects as arguments. (Contributed by Antoine Pitrou in
:issue:`15958`.)
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py
index 5461aa0..4cbaade 100644
--- a/Lib/encodings/aliases.py
+++ b/Lib/encodings/aliases.py
@@ -109,6 +109,11 @@ aliases = {
'1258' : 'cp1258',
'windows_1258' : 'cp1258',
+ # cp273 codec
+ '273' : 'cp273',
+ 'ibm273' : 'cp273',
+ 'csibm273' : 'cp273',
+
# cp424 codec
'424' : 'cp424',
'csibm424' : 'cp424',