Internal get_attr implementation for fast lookup on a class. Searches the full MRO (including self) with method cache acceleration.
(&self, attr_name: &'static PyStrInterned)
| 895 | /// Internal get_attr implementation for fast lookup on a class. |
| 896 | /// Searches the full MRO (including self) with method cache acceleration. |
| 897 | pub fn get_attr(&self, attr_name: &'static PyStrInterned) -> Option<PyObjectRef> { |
| 898 | self.find_name_in_mro(attr_name) |
| 899 | } |
| 900 | |
| 901 | /// Cache __init__ for CALL_ALLOC_AND_ENTER_INIT specialization. |
| 902 | /// The cache is valid only when guarded by the type version check. |