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
08c16016
Kaydet (Commit)
08c16016
authored
Nis 25, 2017
tarafından
Jim Fasarakis-Hilliard
Kaydeden (comit)
Berker Peksag
Nis 25, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo:29950: Rename SlotWrapperType to WrapperDescriptorType (GH-926)
üst
97bf722f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
types.rst
Doc/library/types.rst
+1
-1
test_types.py
Lib/test/test_types.py
+4
-4
types.py
Lib/types.py
+1
-1
NEWS
Misc/NEWS
+1
-1
No files found.
Doc/library/types.rst
Dosyayı görüntüle @
08c16016
...
...
@@ -132,7 +132,7 @@ Standard names are defined for the following types:
C".)
.. data::
SlotWrappe
rType
.. data::
WrapperDescripto
rType
The type of methods of some built-in data types and base classes such as
:meth:`object.__init__` or :meth:`object.__lt__`.
...
...
Lib/test/test_types.py
Dosyayı görüntüle @
08c16016
...
...
@@ -577,10 +577,10 @@ class TypesTests(unittest.TestCase):
self
.
assertGreater
(
tuple
.
__itemsize__
,
0
)
def
test_slot_wrapper_types
(
self
):
self
.
assertIsInstance
(
object
.
__init__
,
types
.
SlotWrappe
rType
)
self
.
assertIsInstance
(
object
.
__str__
,
types
.
SlotWrappe
rType
)
self
.
assertIsInstance
(
object
.
__lt__
,
types
.
SlotWrappe
rType
)
self
.
assertIsInstance
(
int
.
__lt__
,
types
.
SlotWrappe
rType
)
self
.
assertIsInstance
(
object
.
__init__
,
types
.
WrapperDescripto
rType
)
self
.
assertIsInstance
(
object
.
__str__
,
types
.
WrapperDescripto
rType
)
self
.
assertIsInstance
(
object
.
__lt__
,
types
.
WrapperDescripto
rType
)
self
.
assertIsInstance
(
int
.
__lt__
,
types
.
WrapperDescripto
rType
)
def
test_method_wrapper_types
(
self
):
self
.
assertIsInstance
(
object
()
.
__init__
,
types
.
MethodWrapperType
)
...
...
Lib/types.py
Dosyayı görüntüle @
08c16016
...
...
@@ -36,7 +36,7 @@ MethodType = type(_C()._m)
BuiltinFunctionType
=
type
(
len
)
BuiltinMethodType
=
type
([]
.
append
)
# Same as BuiltinFunctionType
SlotWrappe
rType
=
type
(
object
.
__init__
)
WrapperDescripto
rType
=
type
(
object
.
__init__
)
MethodWrapperType
=
type
(
object
()
.
__str__
)
MethodDescriptorType
=
type
(
str
.
join
)
...
...
Misc/NEWS
Dosyayı görüntüle @
08c16016
...
...
@@ -512,7 +512,7 @@ Library
-
Issue
#
29444
:
Fixed
out
-
of
-
bounds
buffer
access
in
the
group
()
method
of
the
match
object
.
Based
on
patch
by
WGH
.
-
Issue
#
29377
:
Add
SlotWrappe
rType
,
MethodWrapperType
,
and
-
Issue
#
29377
:
Add
WrapperDescripto
rType
,
MethodWrapperType
,
and
MethodDescriptorType
built
-
in
types
to
types
module
.
Original
patch
by
Manuel
Krebber
.
...
...
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