Message263247
After thinking about Issue 26720 (see also Issue 15994), I think it might be worth documenting not only that bytes-like objects may be passed, but in some cases the class should not be access the object after the method returns. This applies to at least RawIOBase.readinto() and especially RawIOBase.write(). If you want to save the write() data in memory, you have to make a copy, because the original may be lost when BufferedWriter overwrites its internal buffeer. |
|
Date |
User |
Action |
Args |
2016-04-12 13:25:06 | martin.panter | set | recipients:
+ martin.panter, pitrou, benjamin.peterson, r.david.murray, docs@python, serhiy.storchaka, Henning.von.Bargen |
2016-04-12 13:25:06 | martin.panter | set | messageid: <1460467506.92.0.354702598883.issue20699@psf.upfronthosting.co.za> |
2016-04-12 13:25:06 | martin.panter | link | issue20699 messages |
2016-04-12 13:25:06 | martin.panter | create | |
|