We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2686d4 commit 0e7f4b4Copy full SHA for 0e7f4b4
src/types/any.rs
@@ -980,8 +980,6 @@ impl<'py> PyAnyMethods<'py> for Bound<'py, PyAny> {
980
where
981
N: IntoPyObject<'py, Target = PyString>,
982
{
983
- // PyObject_HasAttr suppresses all exceptions, which was the behaviour of `hasattr` in Python 2.
984
- // Use an implementation which suppresses only AttributeError, which is consistent with `hasattr` in Python 3.
985
let result = unsafe {
986
ffi::compat::PyObject_HasAttrWithError(
987
self.as_ptr(),
0 commit comments