Xuanwo commented on code in PR #4122:
URL: https://github.com/apache/opendal/pull/4122#discussion_r1474047518


##########
bindings/python/src/file.rs:
##########
@@ -185,7 +192,7 @@ impl File {
     }
 
     pub fn __exit__(&mut self, _exc_type: PyObject, _exc_value: PyObject, 
_traceback: PyObject) {
-        self.0 = FileState::Closed;
+        let _ = self.close();

Review Comment:
   Hi, @messense @Zheaoli is there a way for use to return error during exist 
context manager?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to