Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ad8a1c3f
Kaydet (Commit)
ad8a1c3f
authored
May 12, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22682: Added support for the kz1048 encoding.
üst
0d4df752
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
3 deletions
+19
-3
codecs.rst
Doc/library/codecs.rst
+4
-0
3.5.rst
Doc/whatsnew/3.5.rst
+3
-0
aliases.py
Lib/encodings/aliases.py
+5
-0
locale.py
Lib/locale.py
+1
-0
test_codecs.py
Lib/test/test_codecs.py
+1
-0
test_unicode.py
Lib/test/test_unicode.py
+2
-2
test_xml_etree.py
Lib/test/test_xml_etree.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/codecs.rst
Dosyayı görüntüle @
ad8a1c3f
...
@@ -1162,6 +1162,10 @@ particular, the following variants typically exist:
...
@@ -1162,6 +1162,10 @@ particular, the following variants typically exist:
+-----------------+--------------------------------+--------------------------------+
+-----------------+--------------------------------+--------------------------------+
| koi8_u | | Ukrainian |
| koi8_u | | Ukrainian |
+-----------------+--------------------------------+--------------------------------+
+-----------------+--------------------------------+--------------------------------+
| kz1048 | kz_1048, strk1048_2002, rk1048 | Kazakh |
| | | |
| | | .. versionadded:: 3.5 |
+-----------------+--------------------------------+--------------------------------+
| mac_cyrillic | maccyrillic | Bulgarian, Byelorussian, |
| mac_cyrillic | maccyrillic | Bulgarian, Byelorussian, |
| | | Macedonian, Russian, Serbian |
| | | Macedonian, Russian, Serbian |
+-----------------+--------------------------------+--------------------------------+
+-----------------+--------------------------------+--------------------------------+
...
...
Doc/whatsnew/3.5.rst
Dosyayı görüntüle @
ad8a1c3f
...
@@ -231,6 +231,9 @@ Some smaller changes made to the core Python language are:
...
@@ -231,6 +231,9 @@ Some smaller changes made to the core Python language are:
* The :option:`-b` option now affects comparisons of :class:`bytes` with
* The :option:`-b` option now affects comparisons of :class:`bytes` with
:class:`int`. (Contributed by Serhiy Storchaka in :issue:`23681`)
:class:`int`. (Contributed by Serhiy Storchaka in :issue:`23681`)
* New Kazakh :ref:`codec <standard-encodings>` ``kz1048``. (Contributed by
Serhiy Storchaka in :issue:`22682`.)
New Modules
New Modules
===========
===========
...
...
Lib/encodings/aliases.py
Dosyayı görüntüle @
ad8a1c3f
...
@@ -412,6 +412,11 @@ aliases = {
...
@@ -412,6 +412,11 @@ aliases = {
# koi8_r codec
# koi8_r codec
'cskoi8r'
:
'koi8_r'
,
'cskoi8r'
:
'koi8_r'
,
# kz1048 codec
'kz_1048'
:
'kz1048'
,
'rk1048'
:
'kz1048'
,
'strk1048_2002'
:
'kz1048'
,
# latin_1 codec
# latin_1 codec
#
#
# Note that the latin_1 codec is implemented internally in C and a
# Note that the latin_1 codec is implemented internally in C and a
...
...
Lib/locale.py
Dosyayı görüntüle @
ad8a1c3f
...
@@ -700,6 +700,7 @@ locale_encoding_alias = {
...
@@ -700,6 +700,7 @@ locale_encoding_alias = {
'utf_8'
:
'UTF-8'
,
'utf_8'
:
'UTF-8'
,
'koi8_r'
:
'KOI8-R'
,
'koi8_r'
:
'KOI8-R'
,
'koi8_u'
:
'KOI8-U'
,
'koi8_u'
:
'KOI8-U'
,
'kz1048'
:
'RK1048'
,
'cp1251'
:
'CP1251'
,
'cp1251'
:
'CP1251'
,
'cp1255'
:
'CP1255'
,
'cp1255'
:
'CP1255'
,
'cp1256'
:
'CP1256'
,
'cp1256'
:
'CP1256'
,
...
...
Lib/test/test_codecs.py
Dosyayı görüntüle @
ad8a1c3f
...
@@ -1823,6 +1823,7 @@ all_unicode_encodings = [
...
@@ -1823,6 +1823,7 @@ all_unicode_encodings = [
"johab"
,
"johab"
,
"koi8_r"
,
"koi8_r"
,
"koi8_u"
,
"koi8_u"
,
"kz1048"
,
"latin_1"
,
"latin_1"
,
"mac_cyrillic"
,
"mac_cyrillic"
,
"mac_greek"
,
"mac_greek"
,
...
...
Lib/test/test_unicode.py
Dosyayı görüntüle @
ad8a1c3f
...
@@ -2081,7 +2081,7 @@ class UnicodeTest(string_tests.CommonTest,
...
@@ -2081,7 +2081,7 @@ class UnicodeTest(string_tests.CommonTest,
'cp863'
,
'cp865'
,
'cp866'
,
'cp1125'
,
'cp863'
,
'cp865'
,
'cp866'
,
'cp1125'
,
'iso8859_10'
,
'iso8859_13'
,
'iso8859_14'
,
'iso8859_15'
,
'iso8859_10'
,
'iso8859_13'
,
'iso8859_14'
,
'iso8859_15'
,
'iso8859_2'
,
'iso8859_3'
,
'iso8859_4'
,
'iso8859_5'
,
'iso8859_6'
,
'iso8859_2'
,
'iso8859_3'
,
'iso8859_4'
,
'iso8859_5'
,
'iso8859_6'
,
'iso8859_7'
,
'iso8859_9'
,
'koi8_r'
,
'latin_1'
,
'iso8859_7'
,
'iso8859_9'
,
'koi8_r'
,
'
kz1048'
,
'
latin_1'
,
'mac_cyrillic'
,
'mac_latin2'
,
'mac_cyrillic'
,
'mac_latin2'
,
'cp1250'
,
'cp1251'
,
'cp1252'
,
'cp1253'
,
'cp1254'
,
'cp1255'
,
'cp1250'
,
'cp1251'
,
'cp1252'
,
'cp1253'
,
'cp1254'
,
'cp1255'
,
...
@@ -2116,7 +2116,7 @@ class UnicodeTest(string_tests.CommonTest,
...
@@ -2116,7 +2116,7 @@ class UnicodeTest(string_tests.CommonTest,
#'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1255',
#'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1255',
#'cp1256', 'cp1257', 'cp1258',
#'cp1256', 'cp1257', 'cp1258',
#'cp424', 'cp856', 'cp857', 'cp864', 'cp869', 'cp874',
#'cp424', 'cp856', 'cp857', 'cp864', 'cp869', 'cp874',
#'iso8859_3', 'iso8859_6', 'iso8859_7',
#'iso8859_3', 'iso8859_6', 'iso8859_7',
'kz1048',
#'mac_greek', 'mac_iceland','mac_roman', 'mac_turkish',
#'mac_greek', 'mac_iceland','mac_roman', 'mac_turkish',
### These fail the round-trip:
### These fail the round-trip:
...
...
Lib/test/test_xml_etree.py
Dosyayı görüntüle @
ad8a1c3f
...
@@ -704,7 +704,7 @@ class ElementTreeTest(unittest.TestCase):
...
@@ -704,7 +704,7 @@ class ElementTreeTest(unittest.TestCase):
'mac-roman'
,
'mac-turkish'
,
'mac-roman'
,
'mac-turkish'
,
'iso2022-jp'
,
'iso2022-jp-1'
,
'iso2022-jp-2'
,
'iso2022-jp-2004'
,
'iso2022-jp'
,
'iso2022-jp-1'
,
'iso2022-jp-2'
,
'iso2022-jp-2004'
,
'iso2022-jp-3'
,
'iso2022-jp-ext'
,
'iso2022-jp-3'
,
'iso2022-jp-ext'
,
'koi8-r'
,
'koi8-u'
,
'koi8-r'
,
'koi8-u'
,
'kz1048'
,
'hz'
,
'ptcp154'
,
'hz'
,
'ptcp154'
,
]
]
for
encoding
in
supported_encodings
:
for
encoding
in
supported_encodings
:
...
...
Misc/NEWS
Dosyayı görüntüle @
ad8a1c3f
...
@@ -42,6 +42,8 @@ Core and Builtins
...
@@ -42,6 +42,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #22682: Added support for the kz1048 encoding.
- Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
- Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
if they called on a closed object. Patch by John Hergenroeder.
if they called on a closed object. Patch by John Hergenroeder.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment