Message223403
| Author |
Drekin |
| Recipients |
David.Sankel, Drekin, akira, amaury.forgeotdarc, christian.heimes, christoph, davidsarah, ezio.melotti, flox, giampaolo.rodola, hippietrail, lemburg, mark, mhammond, ncoghlan, pitrou, santoso.wijaya, smerlin, ssbarnea, steve.dower, terry.reedy, tim.golden, tzot, v+python, vstinner |
| Date |
2014年07月18日.09:04:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1405674246.97.0.970150633909.issue1602@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I have made some updates in the streams code. Better error handling (getting errno by GetLastError() and raising exception when zero bytes are written on non-zero input). This prevents the infinite loop in BufferedIOWriter.flush() when there is odd number of bytes (WriteConsoleW accepts UTF-16-LE so only even number of bytes is written). It also prevents the same infinite loop when the buffer is too big to write at once (see http://bugs.python.org/issue11395 ). The limit of 32767 bytes was added to raw write. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年07月18日 09:04:07 | Drekin | set | recipients:
+ Drekin, lemburg, mhammond, terry.reedy, tzot, amaury.forgeotdarc, ncoghlan, pitrou, vstinner, giampaolo.rodola, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, flox, davidsarah, santoso.wijaya, akira, David.Sankel, smerlin, steve.dower |
| 2014年07月18日 09:04:06 | Drekin | set | messageid: <1405674246.97.0.970150633909.issue1602@psf.upfronthosting.co.za> |
| 2014年07月18日 09:04:06 | Drekin | link | issue1602 messages |
| 2014年07月18日 09:04:06 | Drekin | create |
|