[issue25566] asyncio reference cycles after ConnectionResetError

2015-11-06 Thread Jeroen van der Heijden
New submission from Jeroen van der Heijden: When a ConnectionResetError occurs, reference cycles are created due to __traceback__. As far as I can see there's no way to prevent this to happen since the event loop exception handler is not called for the following events: BrokenPipeError

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Jeroen van der Heijden
New submission from Jeroen van der Heijden: When compiling a regular expression with groups (subpatterns), circular references are created. Here is an example to illustrate the problem: >>> import gc >>> import re >>> gc.disable() # disable garbage collector >

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Jeroen van der Heijden
Jeroen van der Heijden added the comment: Thanks Serhiy, I totally agree with your solution. Using a list with subpattern widths is definitely better compared to using weakref. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p