@@ -212,7 +212,7 @@ impl PyDict {
212212 }
213213 }
214214
215- # [ pymethod ]
215+ // __len__ exposed via AsMapping as wrapper_descriptor
216216 pub fn __len__ ( & self ) -> usize {
217217 self . entries . len ( )
218218 }
@@ -222,12 +222,12 @@ impl PyDict {
222222 std:: mem:: size_of :: < Self > ( ) + self . entries . sizeof ( )
223223 }
224224
225- # [ pymethod ]
225+ // __contains__ exposed via AsSequence as wrapper_descriptor
226226 fn __contains__ ( & self , key : PyObjectRef , vm : & VirtualMachine ) -> PyResult < bool > {
227227 self . entries . contains ( vm, & * key)
228228 }
229229
230- # [ pymethod ]
230+ // __delitem__ exposed via AsMapping as wrapper_descriptor
231231 fn __delitem__ ( & self , key : PyObjectRef , vm : & VirtualMachine ) -> PyResult < ( ) > {
232232 self . inner_delitem ( & * key, vm)
233233 }
@@ -237,7 +237,7 @@ impl PyDict {
237237 self . entries . clear ( )
238238 }
239239
240- # [ pymethod ]
240+ // __setitem__ exposed via AsMapping as wrapper_descriptor
241241 fn __setitem__ (
242242 & self ,
243243 key : PyObjectRef ,
@@ -294,7 +294,7 @@ impl PyDict {
294294 Ok ( ( ) )
295295 }
296296
297- # [ pymethod ]
297+ // __or__ exposed via AsNumber as wrapper_descriptor
298298 fn __or__ ( & self , other : PyObjectRef , vm : & VirtualMachine ) -> PyResult {
299299 let other_dict: Result < PyDictRef , _ > = other. downcast ( ) ;
300300 if let Ok ( other) = other_dict {
@@ -375,7 +375,7 @@ impl Py<PyDict> {
375375 Ok ( Implemented ( true ) )
376376 }
377377
378- # [ pymethod ]
378+ // __getitem__ exposed via AsMapping as wrapper_descriptor
379379 #[ cfg_attr( feature = "flame-it" , flame( "PyDictRef" ) ) ]
380380 fn __getitem__ ( & self , key : PyObjectRef , vm : & VirtualMachine ) -> PyResult {
381381 self . inner_getitem ( & * key, vm)
@@ -404,13 +404,13 @@ impl PyRef<PyDict> {
404404 PyDictReverseKeyIterator :: new ( self )
405405 }
406406
407- # [ pymethod ]
407+ // __ior__ exposed via AsNumber as wrapper_descriptor
408408 fn __ior__ ( self , other : PyObjectRef , vm : & VirtualMachine ) -> PyResult < Self > {
409409 self . merge_object ( other, vm) ?;
410410 Ok ( self )
411411 }
412412
413- # [ pymethod ]
413+ // __ror__ exposed via AsNumber as wrapper_descriptor
414414 fn __ror__ ( self , other : PyObjectRef , vm : & VirtualMachine ) -> PyResult {
415415 let other_dict: Result < Self , _ > = other. downcast ( ) ;
416416 if let Ok ( other) = other_dict {
@@ -1143,7 +1143,7 @@ impl ViewSetOps for PyDictKeys {}
11431143 )
11441144) ]
11451145impl PyDictKeys {
1146- # [ pymethod ]
1146+ // __contains__ exposed via AsSequence as wrapper_descriptor
11471147 fn __contains__ ( zelf : PyObjectRef , key : PyObjectRef , vm : & VirtualMachine ) -> PyResult < bool > {
11481148 zelf. sequence_unchecked ( ) . contains ( & key, vm)
11491149 }
@@ -1208,7 +1208,7 @@ impl ViewSetOps for PyDictItems {}
12081208 )
12091209) ]
12101210impl PyDictItems {
1211- # [ pymethod ]
1211+ // __contains__ exposed via AsSequence as wrapper_descriptor
12121212 fn __contains__ ( zelf : PyObjectRef , needle : PyObjectRef , vm : & VirtualMachine ) -> PyResult < bool > {
12131213 zelf. sequence_unchecked ( ) . contains ( & needle, vm)
12141214 }
0 commit comments