Xiang Zhang added the comment:

Try Simon's snippet I think I am right.

With the current code, the result is:

1..1
Segmentation fault (core dumped)

With Py_INCREF:

1..1
ok 1 - was able to loop 100 times

I upload the working patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file44093/issue27736.patch

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

Reply via email to