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
09832740
Kaydet (Commit)
09832740
authored
Mar 26, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix isprintable() on space characters #5126
üst
59406a9d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
1 deletion
+4
-1
test_unicode.py
Lib/test/test_unicode.py
+1
-0
NEWS
Misc/NEWS
+2
-0
unicodetype_db.h
Objects/unicodetype_db.h
+0
-0
makeunicodedata.py
Tools/unicode/makeunicodedata.py
+1
-1
No files found.
Lib/test/test_unicode.py
Dosyayı görüntüle @
09832740
...
@@ -424,6 +424,7 @@ class UnicodeTest(
...
@@ -424,6 +424,7 @@ class UnicodeTest(
def
test_isprintable
(
self
):
def
test_isprintable
(
self
):
self
.
assertTrue
(
""
.
isprintable
())
self
.
assertTrue
(
""
.
isprintable
())
self
.
assertTrue
(
" "
.
isprintable
())
self
.
assertTrue
(
"abcdefg"
.
isprintable
())
self
.
assertTrue
(
"abcdefg"
.
isprintable
())
self
.
assertFalse
(
"abcdefg
\n
"
.
isprintable
())
self
.
assertFalse
(
"abcdefg
\n
"
.
isprintable
())
# some defined Unicode character
# some defined Unicode character
...
...
Misc/NEWS
Dosyayı görüntüle @
09832740
...
@@ -12,6 +12,8 @@ What's New in Python 3.1 alpha 2?
...
@@ -12,6 +12,8 @@ What's New in Python 3.1 alpha 2?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #5126: str.isprintable() returned False for space characters.
- Issue #4688: Add a heuristic so that tuples and dicts containing only
- Issue #4688: Add a heuristic so that tuples and dicts containing only
untrackable objects are not tracked by the garbage collector. This can
untrackable objects are not tracked by the garbage collector. This can
reduce the size of collections and therefore the garbage collection overhead
reduce the size of collections and therefore the garbage collection overhead
...
...
Objects/unicodetype_db.h
Dosyayı görüntüle @
09832740
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Tools/unicode/makeunicodedata.py
Dosyayı görüntüle @
09832740
...
@@ -375,7 +375,7 @@ def makeunicodetype(unicode, trace):
...
@@ -375,7 +375,7 @@ def makeunicodetype(unicode, trace):
flags
|=
TITLE_MASK
flags
|=
TITLE_MASK
if
category
==
"Lu"
:
if
category
==
"Lu"
:
flags
|=
UPPER_MASK
flags
|=
UPPER_MASK
if
char
==
" "
or
category
[
0
]
not
in
(
"C"
,
"Z"
):
if
char
==
ord
(
" "
)
or
category
[
0
]
not
in
(
"C"
,
"Z"
):
flags
|=
PRINTABLE_MASK
flags
|=
PRINTABLE_MASK
if
"XID_Start"
in
properties
:
if
"XID_Start"
in
properties
:
flags
|=
XID_START_MASK
flags
|=
XID_START_MASK
...
...
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