This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author davidszotten@gmail.com
Recipients davidszotten@gmail.com
Date 2016-10-29.17:07:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477760845.01.0.230790209004.issue28557@psf.upfronthosting.co.za>
In-reply-to
Content
Was just tracking down a bug in eventlet, which manifested as "OSError: raw readinto() returned invalid length -1 (should have been between 0 and 8192)"

I was misled for a while by the fact that readinto was in fact returning b'', not -1. This improves the error message in that case by including the TypeError from the failed conversion of b'' to an int.

Would prefer to still return an OSError with the TypeError as a cause, but couldn't figure out how to do that. Hints/help would be appreciated.
History
Date User Action Args
2016-10-29 17:07:25davidszotten@gmail.comsetrecipients: + davidszotten@gmail.com
2016-10-29 17:07:25davidszotten@gmail.comsetmessageid: <1477760845.01.0.230790209004.issue28557@psf.upfronthosting.co.za>
2016-10-29 17:07:24davidszotten@gmail.comlinkissue28557 messages
2016-10-29 17:07:24davidszotten@gmail.comcreate