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
ee49797c
Kaydet (Commit)
ee49797c
authored
May 30, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #12057: Add tests for ISO 2022 codecs
iso2022_jp, iso2022_jp_2 and iso2022_kr
üst
19c52333
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
83 additions
and
1 deletion
+83
-1
iso2022_jp-utf8.txt
Lib/test/cjkencodings/iso2022_jp-utf8.txt
+7
-0
iso2022_jp.txt
Lib/test/cjkencodings/iso2022_jp.txt
+7
-0
iso2022_kr-utf8.txt
Lib/test/cjkencodings/iso2022_kr-utf8.txt
+7
-0
iso2022_kr.txt
Lib/test/cjkencodings/iso2022_kr.txt
+7
-0
test_codecencodings_iso2022.py
Lib/test/test_codecencodings_iso2022.py
+46
-0
test_multibytecodec_support.py
Lib/test/test_multibytecodec_support.py
+3
-1
NEWS
Misc/NEWS
+6
-0
No files found.
Lib/test/cjkencodings/iso2022_jp-utf8.txt
0 → 100644
Dosyayı görüntüle @
ee49797c
Python の開発は、1990 年ごろから開始されています。
開発者の Guido van Rossum は教育用のプログラミング言語「ABC」の開発に参加していましたが、ABC は実用上の目的にはあまり適していませんでした。
このため、Guido はより実用的なプログラミング言語の開発を開始し、英国 BBS 放送のコメディ番組「モンティ パイソン」のファンである Guido はこの言語を「Python」と名づけました。
このような背景から生まれた Python の言語設計は、「シンプル」で「習得が容易」という目標に重点が置かれています。
多くのスクリプト系言語ではユーザの目先の利便性を優先して色々な機能を言語要素として取り入れる場合が多いのですが、Python ではそういった小細工が追加されることはあまりありません。
言語自体の機能は最小限に押さえ、必要な機能は拡張モジュールとして追加する、というのが Python のポリシーです。
Lib/test/cjkencodings/iso2022_jp.txt
0 → 100644
Dosyayı görüntüle @
ee49797c
Python $B$N3+H/$O!"(B1990 $BG/$4$m$+$i3+;O$5$l$F$$$^$9!#(B
$B3+H/<T$N(B Guido van Rossum $B$O650iMQ$N%W%m%0%i%_%s%08@8l!V(BABC$B!W$N3+H/$K;22C$7$F$$$^$7$?$,!"(BABC $B$O<BMQ>e$NL\E*$K$O$"$^$jE,$7$F$$$^$;$s$G$7$?!#(B
$B$3$N$?$a!"(BGuido $B$O$h$j<BMQE*$J%W%m%0%i%_%s%08@8l$N3+H/$r3+;O$7!"1Q9q(B BBS $BJ|Aw$N%3%a%G%#HVAH!V%b%s%F%#(B $B%Q%$%=%s!W$N%U%!%s$G$"$k(B Guido $B$O$3$N8@8l$r!V(BPython$B!W$HL>$E$1$^$7$?!#(B
$B$3$N$h$&$JGX7J$+$i@8$^$l$?(B Python $B$N8@8l@_7W$O!"!V%7%s%W%k!W$G!V=,F@$,MF0W!W$H$$$&L\I8$K=EE@$,CV$+$l$F$$$^$9!#(B
$BB?$/$N%9%/%j%W%H7O8@8l$G$O%f!<%6$NL\@h$NMxJX@-$rM%@h$7$F?'!9$J5!G=$r8@8lMWAG$H$7$F<h$jF~$l$k>l9g$,B?$$$N$G$9$,!"(BPython $B$G$O$=$&$$$C$?>.:Y9)$,DI2C$5$l$k$3$H$O$"$^$j$"$j$^$;$s!#(B
$B8@8l<+BN$N5!G=$O:G>.8B$K2!$5$(!"I,MW$J5!G=$O3HD%%b%8%e!<%k$H$7$FDI2C$9$k!"$H$$$&$N$,(B Python $B$N%]%j%7!<$G$9!#(B
Lib/test/cjkencodings/iso2022_kr-utf8.txt
0 → 100644
Dosyayı görüntüle @
ee49797c
◎ 파이썬(Python)은 배우기 쉽고, 강력한 프로그래밍 언어입니다. 파이썬은
효율적인 고수준 데이터 구조와 간단하지만 효율적인 객체지향프로그래밍을
지원합니다. 파이썬의 우아(優雅)한 문법과 동적 타이핑, 그리고 인터프리팅
환경은 파이썬을 스크립팅과 여러 분야에서와 대부분의 플랫폼에서의 빠른
애플리케이션 개발을 할 수 있는 이상적인 언어로 만들어줍니다.
☆첫가끝: 날아라 쓩~ 큼! 금없이 전니다. 그런거 다.
Lib/test/cjkencodings/iso2022_kr.txt
0 → 100644
Dosyayı görüntüle @
ee49797c
$)C!] FD@L=c(Python)@: 9h?l1b =10m, 0-7BGQ GA7N1W7!9V >p>n@T4O4Y. FD@L=c@:
H?@2@{@N 0m<vAX 5%@LEM 18A6?M 0#4\GOAv88 H?@2@{@N 04C<AvGbGA7N1W7!9V@;
Av?xGU4O4Y. FD@L=c@G ?l>F(iPd:)GQ 9.9}0z 5?@{ E8@LGN, 1W8.0m @NEMGA8.FC
H/0f@: FD@L=c@; =:E)83FC0z ?)7/ :P>_?!<-?M 4k:N:P@G GC7'F{?!<-@G :|8%
>VGC8.DI@L<G 039_@; GR <v @V4B @L;s@{@N >p>n7N 885i>nA]4O4Y.
!YC90!3!: 3/>F6s >1~ E-! 1]>x@L @|4O4Y. 1W710E 4Y.
Lib/test/test_codecencodings_iso2022.py
0 → 100644
Dosyayı görüntüle @
ee49797c
#!/usr/bin/env python
#
# Codec encoding tests for ISO 2022 encodings.
from
test
import
support
from
test
import
test_multibytecodec_support
import
unittest
COMMON_CODEC_TESTS
=
(
# invalid bytes
(
b
'ab
\xFF
cd'
,
'replace'
,
'ab
\uFFFD
cd'
),
(
b
'ab
\x1B
def'
,
'replace'
,
'ab
\x1B
def'
),
(
b
'ab
\x1B
$def'
,
'replace'
,
'ab
\uFFFD
'
),
)
class
Test_ISO2022_JP
(
test_multibytecodec_support
.
TestBase
,
unittest
.
TestCase
):
encoding
=
'iso2022_jp'
tstring
=
test_multibytecodec_support
.
load_teststring
(
'iso2022_jp'
)
codectests
=
COMMON_CODEC_TESTS
+
(
(
b
'ab
\x1B
Ndef'
,
'replace'
,
'ab
\x1B
Ndef'
),
)
class
Test_ISO2022_JP2
(
test_multibytecodec_support
.
TestBase
,
unittest
.
TestCase
):
encoding
=
'iso2022_jp_2'
tstring
=
test_multibytecodec_support
.
load_teststring
(
'iso2022_jp'
)
codectests
=
COMMON_CODEC_TESTS
+
(
(
b
'ab
\x1B
Ndef'
,
'replace'
,
'abdef'
),
)
class
Test_ISO2022_KR
(
test_multibytecodec_support
.
TestBase
,
unittest
.
TestCase
):
encoding
=
'iso2022_kr'
tstring
=
test_multibytecodec_support
.
load_teststring
(
'iso2022_kr'
)
codectests
=
COMMON_CODEC_TESTS
+
(
(
b
'ab
\x1B
Ndef'
,
'replace'
,
'ab
\x1B
Ndef'
),
)
# iso2022_kr.txt cannot be used to test "chunk coding": the escape
# sequence is only written on the first line
def
test_chunkcoding
(
self
):
pass
def
test_main
():
support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
test_main
()
Lib/test/test_multibytecodec_support.py
Dosyayı görüntüle @
ee49797c
...
@@ -60,7 +60,9 @@ class TestBase:
...
@@ -60,7 +60,9 @@ class TestBase:
self
.
assertTrue
(
type
(
result
)
is
str
,
type
(
result
))
self
.
assertTrue
(
type
(
result
)
is
str
,
type
(
result
))
else
:
else
:
self
.
assertTrue
(
type
(
result
)
is
bytes
,
type
(
result
))
self
.
assertTrue
(
type
(
result
)
is
bytes
,
type
(
result
))
self
.
assertEqual
(
result
,
expected
)
self
.
assertEqual
(
result
,
expected
,
'
%
a.decode(
%
r)=
%
a !=
%
a'
%
(
source
,
self
.
encoding
,
result
,
expected
))
else
:
else
:
self
.
assertRaises
(
UnicodeError
,
func
,
source
,
scheme
)
self
.
assertRaises
(
UnicodeError
,
func
,
source
,
scheme
)
...
...
Misc/NEWS
Dosyayı görüntüle @
ee49797c
...
@@ -55,6 +55,12 @@ Build
...
@@ -55,6 +55,12 @@ Build
ensure "make install" creates symlinks in --prefix bin for the "-32"
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
files in the framework bin directory like the installer does.
Tests
-----
- Issue #12057: Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2,
iso2022_kr).
What's New in Python 3.2.1 release candidate 1?
What's New in Python 3.2.1 release candidate 1?
===============================================
===============================================
...
...
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