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 jonathan.slenders
Recipients Rosuav, ethan.furman, jonathan.slenders
Date 2015-06-30.14:57:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435676237.17.0.387802263426.issue24536@psf.upfronthosting.co.za>
In-reply-to
Content
Niki Spahiev made a valid argument saying that the following code is common:

if not hasattr(src, 'read'): src = open(src)

This will break if we name it 'read'/'write'  like the methods of a file object.
History
Date User Action Args
2015-06-30 14:57:17jonathan.slenderssetrecipients: + jonathan.slenders, ethan.furman, Rosuav
2015-06-30 14:57:17jonathan.slenderssetmessageid: <1435676237.17.0.387802263426.issue24536@psf.upfronthosting.co.za>
2015-06-30 14:57:17jonathan.slenderslinkissue24536 messages
2015-06-30 14:57:17jonathan.slenderscreate