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 serhiy.storchaka
Recipients Arfrever, akuchling, barry, benjamin.peterson, christian.heimes, georg.brandl, giampaolo.rodola, larry, r.david.murray, serhiy.storchaka
Date 2013-09-15.16:45:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It is not important in the context of this issue, but readline(0) is blocked and returns 1-character string. Move the length check above For readability you can also move the chr != "\n" inside the loop:

             while size is None or len(str) < size:
                 chr =
                 if not chr or chr == "\n": break
                 str += chr
Date User Action Args
2013-09-15 16:45:28serhiy.storchakasetrecipients: + serhiy.storchaka, barry, akuchling, georg.brandl, larry, giampaolo.rodola, christian.heimes, benjamin.peterson, Arfrever, r.david.murray
2013-09-15 16:45:28serhiy.storchakasetmessageid: <>
2013-09-15 16:45:28serhiy.storchakalinkissue16042 messages
2013-09-15 16:45:27serhiy.storchakacreate