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 anton.barkovsky
Recipients alexandre.vassalotti, anton.barkovsky, justus.winter, martin.panter, serhiy.storchaka, xiang.zhang, xtreak
Date 2018-10-12.10:55:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539341718.24.0.788709270274.issue27261@psf.upfronthosting.co.za>
In-reply-to
Content
I'm willing to try to fix this behavior.

I just want to check that this would not be considered breaking backwards compatibility. I can imagine in theory some code relying on it, but I would say that it would be relying on a bug. If some code is passed BytesIO in place of a file, then the current behavior is clearly undesirable. If some code specifically uses BytesIO and relies on this... I guess this can happen, but should be very rare and contrary to widely documented behavior. So it seems ok to just fix this, but I'm not very familiar with how such changes are usually handled in cPython, so I'd like to get approval from someone experienced.
History
Date User Action Args
2018-10-12 10:55:18anton.barkovskysetrecipients: + anton.barkovsky, alexandre.vassalotti, martin.panter, serhiy.storchaka, xiang.zhang, justus.winter, xtreak
2018-10-12 10:55:18anton.barkovskysetmessageid: <1539341718.24.0.788709270274.issue27261@psf.upfronthosting.co.za>
2018-10-12 10:55:18anton.barkovskylinkissue27261 messages
2018-10-12 10:55:18anton.barkovskycreate