Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

There is other issues with IncrementalNewlineDecoder.__init__ -- it leaks 
references when called repeatedly.

The simplest solution of both issues will be moving the initialization to the 
new method. But this class looks designed for subclassing, and this can break 
subclasses that change arguments before passing them to the superclass' 
constructor.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31718>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to