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
9cd87aaa
Kaydet (Commit)
9cd87aaa
authored
Eki 23, 2002
tarafından
Marc-André Lemburg
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix for bug #626172: crash using unicode latin1 single char
Python 2.2.3 candidate.
üst
45186c4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
test_unicode.py
Lib/test/test_unicode.py
+6
-0
unicodeobject.c
Objects/unicodeobject.c
+1
-3
No files found.
Lib/test/test_unicode.py
Dosyayı görüntüle @
9cd87aaa
...
...
@@ -434,6 +434,12 @@ vereq((u'ab' in 'abc'), True)
vereq
((
u'ab'
in
(
1
,
None
,
u'ab'
)),
True
)
vereq
((
u''
in
u'abc'
),
True
)
vereq
((
''
in
u'abc'
),
True
)
try
:
u'
\xe2
'
in
'g
\xe2
teau'
except
UnicodeError
:
pass
else
:
print
'*** contains operator does not propagate UnicodeErrors'
print
'done.'
# Formatting:
...
...
Objects/unicodeobject.c
Dosyayı görüntüle @
9cd87aaa
...
...
@@ -4485,10 +4485,8 @@ int PyUnicode_Contains(PyObject *container,
goto
onError
;
}
u
=
(
PyUnicodeObject
*
)
PyUnicode_FromObject
(
container
);
if
(
u
==
NULL
)
{
Py_DECREF
(
v
);
if
(
u
==
NULL
)
goto
onError
;
}
size
=
PyUnicode_GET_SIZE
(
v
);
rhs
=
PyUnicode_AS_UNICODE
(
v
);
...
...
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