Message168945
> Here is the patch (with the old ones removed).
>
> Note that the old code mishandled the case where _PyBytes_Resize()
> failed by assuming that the old bytes object would still be valid.
>
> I have assumed that stream psuedo-files will never claim to have a
> size greater than zero. The code will still work if this assumption
> is false.
I haven't measured under Windows, but this looks ok to me. |
|
Date |
User |
Action |
Args |
2012-08-23 14:50:11 | pitrou | set | recipients:
+ pitrou, vstinner, schmir, sbt |
2012-08-23 14:50:11 | pitrou | link | issue15758 messages |
2012-08-23 14:50:11 | pitrou | create | |
|