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 neologix
Recipients Denis.Bilenko, hynek, ned.deily, neologix, ronaldoussoren, schmir, vitaly
Date 2012-09-18.19:02:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAH_1eM1XQCsQjaMZZsmm8f6D8BB0oCYUXMNvm7bWgr-BSGFF2Q@mail.gmail.com>
In-reply-to <1347985247.92.0.670261802857.issue15896@psf.upfronthosting.co.za>
Content
> What's wrong with working around this bug by reading a smaller amount?
> How much data is there supposed to be?

Nothing, except that there are probably other places in the stdlib
where we can get bitten by this bug. Note that this should eventually
be done for another reason, see http://bugs.python.org/issue15918

> In the work-around, we need to watch out for what 'man 2 read' on Mac OS refers to as
> "normal file":

There's nothing special actually.
This precision concerning normal file is OS-X specific, POSIX makes no
such guarantee: you can always get a short read (e.g. because of
signal delivery), so one should always call read() in a loop.
History
Date User Action Args
2012-09-18 19:02:08neologixsetrecipients: + neologix, ronaldoussoren, schmir, ned.deily, hynek, vitaly, Denis.Bilenko
2012-09-18 19:02:08neologixlinkissue15896 messages
2012-09-18 19:02:07neologixcreate