We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb878a0 commit ba9c8e2Copy full SHA for ba9c8e2
crates/vm/src/exception_group.rs
@@ -290,8 +290,8 @@ pub(super) mod types {
290
Ok(vm.ctx.new_tuple(vec![match_group, rest_group]))
291
}
292
293
- #[pymethod(name = "__str__")]
294
- fn str(zelf: PyRef<PyBaseException>, vm: &VirtualMachine) -> PyResult<String> {
+ #[pymethod]
+ fn __str__(zelf: PyRef<PyBaseException>, vm: &VirtualMachine) -> PyResult<String> {
295
let message = zelf
296
.get_arg(0)
297
.map(|m| m.str(vm))
0 commit comments