You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2020/02/16 21:26:43 UTC

[GitHub] [libcloud] Kami commented on issue #1424: Documentation: Objectstore example is broken / libcloud does seek() on stream

Kami commented on issue #1424: Documentation: Objectstore example is broken / libcloud does seek() on stream
URL: https://github.com/apache/libcloud/issues/1424#issuecomment-586755983
 
 
   Thanks for reporting this.
   
   Is this issue Python 3 specific?
   
   Having said that, one thing we could do is simply ignore "illegal seek" errors in that place, but I'm not sure that's the correct approach. It may mask real issues.
   
   ---
   
   EDIT: It looks like we indeed don't have a better option (https://bugs.python.org/issue12877) since Python sadly doesn't throw a more specific / better exception in that case (so we can't distinguish if underlying iterator doesn't support seek or it does support it and incorrect seek position is provided).
   
   We could have some specific case for pipes, but that's probably not the most robust approach...

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services