[issue32034] Error when unpickling IncompleteReadError

2017-11-15 Thread badouxn
badouxn added the comment: Typo in the last comment. The code should be: ''' def __init__(self, partial, expected): super().__init__(partial, expected) self.partial = partial self.expected = expected def __str__(self): return (&quo

[issue32034] Error when unpickling IncompleteReadError

2017-11-15 Thread badouxn
badouxn added the comment: My first fix was indeed wrong. Upon looking further into it, it seems to me that the problem come from the fact that the call to super is not done with the right argument. Upon unpickling, the argument that will be passed to the __init__ is the string

[issue32034] Error when unpickling IncompleteReadError

2017-11-15 Thread badouxn
Change by badouxn : -- keywords: +patch pull_requests: +4353 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32034> ___ ___ Python-

[issue32034] Error when unpickling IncompleteReadError

2017-11-15 Thread badouxn
Change by badouxn : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue32034> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32034] Error when unpickling IncompleteReadError

2017-11-15 Thread badouxn
Change by badouxn : -- title: Impossible to unpickle IncompleteReadError -> Error when unpickling IncompleteReadError ___ Python tracker <https://bugs.python.org/issu

[issue32034] Impossible to unpickle IncompleteReadError

2017-11-15 Thread badouxn
New submission from badouxn : When using asyncio in combination with multiprocessing, a TypeError occur when readuntil() encounter an EOF instead of the delimiter. readuntil return a IncompleteReadError exception which is pickled by the multiprocessing package. The unpickling failed due to an