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 r.david.murray
Recipients martin.panter, r.david.murray, rthr
Date 2017-07-26.14:09:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501078198.97.0.558838834103.issue31025@psf.upfronthosting.co.za>
In-reply-to
Content
So you are saying that BytesIO has code that checks that its argument only has a single reference and modifies the string in place when it can if so?  You can't depend on that in any other implementation of Python, and shouldn't depend on it in CPython either.  Even in CPython you can't guarantee that case 1 is case 1, since the argument could conceivably be an interned string.

So the seek approach is the only one that makes semantic sense, I think.
History
Date User Action Args
2017-07-26 14:09:58r.david.murraysetrecipients: + r.david.murray, martin.panter, rthr
2017-07-26 14:09:58r.david.murraysetmessageid: <1501078198.97.0.558838834103.issue31025@psf.upfronthosting.co.za>
2017-07-26 14:09:58r.david.murraylinkissue31025 messages
2017-07-26 14:09:58r.david.murraycreate