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 serhiy.storchaka
Recipients Martin Bammer, pitrou, ppperry, serhiy.storchaka
Date 2018-07-17.08:00:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A workaround is writing Python wrappers for IO:

def Writer:
    def __init__(self, file):
        self.file = file
    def write(self, data):
        return self.file.write(data)

def Reader:
    def __init__(self, file):
        self.file = file
    def read(self, size=-1):
    def readline(self, size=-1):
        return self.file.readline(size)
    def peek(self, size=-1):
        return self.file.peek(size)

def mydump(obj, file, *args, **kwargs):
    return pickle.dump(obj, Writer(file), *args, **kwargs)

def myload(file, *args, **kwargs):
    return pickle.load(Reader(file), *args, **kwargs)
Date User Action Args
2018-07-17 08:00:53serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, ppperry, Martin Bammer
2018-07-17 08:00:53serhiy.storchakasetmessageid: <>
2018-07-17 08:00:53serhiy.storchakalinkissue34128 messages
2018-07-17 08:00:53serhiy.storchakacreate