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 pitrou
Recipients ogrisel, pierreglaser, pitrou
Date 2020-02-23.22:47:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582498028.39.0.0123392152586.issue39734@roundup.psfhosted.org>
In-reply-to
Content
In issue39681 we reestablished the fallback to read() when a file-like object doesn't provide readinto() in _pickle.c.  However, doing so leads to lower performance and all file-like object should nowadays provide readinto() (simply by deriving from the right base class - e.g. io.BufferedIOBase).

I propose to issue a DeprecationWarning when the fallback behaviour is selected, so that one day we can finally remove it.
History
Date User Action Args
2020-02-23 22:47:08pitrousetrecipients: + pitrou, ogrisel, pierreglaser
2020-02-23 22:47:08pitrousetmessageid: <1582498028.39.0.0123392152586.issue39734@roundup.psfhosted.org>
2020-02-23 22:47:08pitroulinkissue39734 messages
2020-02-23 22:47:08pitroucreate