[issue13188] generator.throw() ignores __traceback__ of exception

Antoine Pitrou report at bugs.python.org
Tue Oct 18 15:28:13 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Thank you! There is a memory leak somewhere:

$ ./python -m test -R 3:2 test_generators
[1/1] test_generators
beginning 5 repetitions
12345
.....
test_generators leaked [1945, 1945] references, sum=3890
1 test failed:
    test_generators


Also, since the patch is so short, a stylistic nit:

+            if(tb == NULL) {

There should be a space after the "if".
(see PEP 7: http://www.python.org/dev/peps/pep-0007/)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13188>
_______________________________________


More information about the Python-bugs-list mailing list