You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2024/03/15 06:44:51 UTC

[I] python: write needs to explicitly return the number of bytes written [opendal]

Xuanwo opened a new issue, #4366:
URL: https://github.com/apache/opendal/issues/4366

                 Oh, I suddenly thought of another problem: Our implementation of `File::write` do not seem to accord with the requirement of https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects. It needs to explicitly return the number of bytes written.
   
   ![image](https://github.com/apache/opendal/assets/19502505/85b6b9a1-d07f-46c2-97ef-78df5aadb2ac)
   
   _Originally posted by @reswqa in https://github.com/apache/opendal/issues/4363#issuecomment-1999022680_
               


-- 
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: commits-unsubscribe@opendal.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] python: write needs to explicitly return the number of bytes written [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #4366:
URL: https://github.com/apache/opendal/issues/4366#issuecomment-1999040227

   Would you like to give this a fix? I believe it should be a simple change.


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] python: write needs to explicitly return the number of bytes written [opendal]

Posted by "reswqa (via GitHub)" <gi...@apache.org>.
reswqa commented on issue #4366:
URL: https://github.com/apache/opendal/issues/4366#issuecomment-1999037795

   Fortunately, this is the only change we need to make to support writing the polars DataFrame to opendal :)


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] python: write needs to explicitly return the number of bytes written [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #4366: python:  write needs to explicitly return the number of bytes written
URL: https://github.com/apache/opendal/issues/4366


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org