New submission from Stefan Krah: There's a corner case in cwr_next(), where the pool size is zero but pool[0] is accessed:
from itertools import * it = combinations_with_replacement([], 0) next(it) Patch attached. ---------- components: Extension Modules files: itertools_invalid_access.diff keywords: patch messages: 247460 nosy: rhettinger, skrah priority: normal severity: normal status: open title: Invalid access in combinations_with_replacement() type: behavior versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40037/itertools_invalid_access.diff _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue24735> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
