Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4c7b1c

Browse files
committed
whatsnew: cp273 codec (#10907797)
Also updated the docs and added the aliases mentioned by the references.
1 parent 6b5284f commit c4c7b1c

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

Doc/library/codecs.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,10 @@ particular, the following variants typically exist:
971971
+-----------------+--------------------------------+--------------------------------+
972972
| cp037 | IBM037, IBM039 | English |
973973
+-----------------+--------------------------------+--------------------------------+
974+
| cp273 | 273, IBM273, csIBM273 | German |
975+
| | | |
976+
| | | .. versionadded:: 3.4 |
977+
+-----------------+--------------------------------+--------------------------------+
974978
| cp424 | EBCDIC-CP-HE, IBM424 | Hebrew |
975979
+-----------------+--------------------------------+--------------------------------+
976980
| cp437 | 437, IBM437 | English |

Doc/whatsnew/3.4.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ Some smaller changes made to the core Python language are:
364364
Contributed by Victor Stinner, Kang-Hao (Kenny) Lu and Serhiy Storchaka in
365365
:issue:`12892`.
366366

367+
* New EBCDIC :ref:`codec <standard-encodings>` ``cp273``. (Contributed by
368+
Michael Bierenfeld and Andrew Kuchling in :issue:`1097797`.)
369+
367370

368371

369372
New Modules

Lib/encodings/aliases.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@
109109
'1258' : 'cp1258',
110110
'windows_1258' : 'cp1258',
111111

112+
# cp273 codec
113+
'273' : 'cp273',
114+
'ibm273' : 'cp273',
115+
'csibm273' : 'cp273',
116+
112117
# cp424 codec
113118
'424' : 'cp424',
114119
'csibm424' : 'cp424',

0 commit comments

Comments
 (0)