We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40081e0 commit 586eb71Copy full SHA for 586eb71
vm/src/obj/objstr.rs
@@ -106,11 +106,8 @@ impl PyStringRef {
106
}
107
108
109
- fn str(object: OptionalArg<PyStringRef>, vm: &mut VirtualMachine) -> PyResult<PyStringRef> {
110
- match object {
111
- OptionalArg::Present(obj) => Ok(obj),
112
- OptionalArg::Missing => TryFromObject::try_from_object(vm, vm.new_str("".to_string())),
113
- }
+ fn str(self, _vm: &mut VirtualMachine) -> PyStringRef {
+ self
114
115
116
fn repr(self, _vm: &mut VirtualMachine) -> String {
0 commit comments