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
5d438339
Kaydet (Commit)
5d438339
authored
Kas 15, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22823: Use set literals instead of creating a set from a tuple.
üst
42826566
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
clinic.py
Tools/clinic/clinic.py
+9
-9
No files found.
Tools/clinic/clinic.py
Dosyayı görüntüle @
5d438339
...
...
@@ -2535,9 +2535,9 @@ class str_converter(CConverter):
length
=
False
,
nullable
=
False
,
zeroes
=
False
):
types
=
set
(
types
.
strip
()
.
split
())
bytes_type
=
set
((
"bytes"
,))
str_type
=
set
((
"str"
,))
all_3_type
=
set
((
"bytearray"
,))
|
bytes_type
|
str_type
bytes_type
=
{
"bytes"
}
str_type
=
{
"str"
}
all_3_type
=
{
"bytearray"
}
|
bytes_type
|
str_type
is_bytes
=
types
==
bytes_type
is_str
=
types
==
str_type
is_all_3
=
types
==
all_3_type
...
...
@@ -2633,12 +2633,12 @@ class Py_buffer_converter(CConverter):
fail
(
"The only legal default value for Py_buffer is None."
)
self
.
c_default
=
self
.
c_ignored_default
types
=
set
(
types
.
strip
()
.
split
())
bytes_type
=
set
((
'bytes'
,))
bytearray_type
=
set
((
'bytearray'
,))
buffer_type
=
set
((
'buffer'
,))
rwbuffer_type
=
set
((
'rwbuffer'
,))
robuffer_type
=
set
((
'robuffer'
,))
str_type
=
set
((
'str'
,))
bytes_type
=
{
'bytes'
}
bytearray_type
=
{
'bytearray'
}
buffer_type
=
{
'buffer'
}
rwbuffer_type
=
{
'rwbuffer'
}
robuffer_type
=
{
'robuffer'
}
str_type
=
{
'str'
}
bytes_bytearray_buffer_type
=
bytes_type
|
bytearray_type
|
buffer_type
format_unit
=
None
...
...
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