[issue21175] Refcounting error in str.translate fastpath

2014-04-08 Thread STINNER Victor
STINNER Victor added the comment: > New changeset fa6debebfe8b by Benjamin Peterson in branch 'default': > fix reference leaks in the translate fast path (closes #21175) > http://hg.python.org/cpython/rev/fa6debebfe8b Thanks Benjamin for the quick fix! -- __

[issue21175] Refcounting error in str.translate fastpath

2014-04-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa6debebfe8b by Benjamin Peterson in branch 'default': fix reference leaks in the translate fast path (closes #21175) http://hg.python.org/cpython/rev/fa6debebfe8b -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected stat

[issue21175] Refcounting error in str.translate fastpath

2014-04-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Also, just to be clear, I submitted the contributor form earlier this evening (using the online submission tool), so as soon as that propagates, it should be possible to accept my code. -- ___ Python tracker

[issue21175] Refcounting error in str.translate fastpath

2014-04-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: For reference, bug introduced by fix for #21118. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue21175] Refcounting error in str.translate fastpath

2014-04-07 Thread Josh Rosenberg
New submission from Josh Rosenberg: Py_None is not being properly decref-ed in the str.translate fast path. I've attached a simple patch that fixes this (also corrects some comments and types in the same function). No idea is Py_None ref leaks are considered a serious problem, but I figure it