File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ Standard names are defined for the following types:
132
132
C".)
133
133
134
134
135
- .. data :: SlotWrapperType
135
+ .. data :: WrapperDescriptorType
136
136
137
137
The type of methods of some built-in data types and base classes such as
138
138
:meth: `object.__init__ ` or :meth: `object.__lt__ `.
Original file line number Diff line number Diff line change @@ -577,10 +577,10 @@ def test_internal_sizes(self):
577
577
self .assertGreater (tuple .__itemsize__ , 0 )
578
578
579
579
def test_slot_wrapper_types (self ):
580
- self .assertIsInstance (object .__init__ , types .SlotWrapperType )
581
- self .assertIsInstance (object .__str__ , types .SlotWrapperType )
582
- self .assertIsInstance (object .__lt__ , types .SlotWrapperType )
583
- self .assertIsInstance (int .__lt__ , types .SlotWrapperType )
580
+ self .assertIsInstance (object .__init__ , types .WrapperDescriptorType )
581
+ self .assertIsInstance (object .__str__ , types .WrapperDescriptorType )
582
+ self .assertIsInstance (object .__lt__ , types .WrapperDescriptorType )
583
+ self .assertIsInstance (int .__lt__ , types .WrapperDescriptorType )
584
584
585
585
def test_method_wrapper_types (self ):
586
586
self .assertIsInstance (object ().__init__ , types .MethodWrapperType )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def _m(self): pass
36
36
BuiltinFunctionType = type (len )
37
37
BuiltinMethodType = type ([].append ) # Same as BuiltinFunctionType
38
38
39
- SlotWrapperType = type (object .__init__ )
39
+ WrapperDescriptorType = type (object .__init__ )
40
40
MethodWrapperType = type (object ().__str__ )
41
41
MethodDescriptorType = type (str .join )
42
42
Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ Library
512
512
- Issue #29444: Fixed out-of-bounds buffer access in the group() method of
513
513
the match object. Based on patch by WGH.
514
514
515
- - Issue #29377: Add SlotWrapperType , MethodWrapperType, and
515
+ - Issue #29377: Add WrapperDescriptorType , MethodWrapperType, and
516
516
MethodDescriptorType built-in types to types module.
517
517
Original patch by Manuel Krebber.
518
518
You can’t perform that action at this time.
0 commit comments