New submission from Philip Jenvey <pjen...@underboss.org>: The __length_hint__ optimization was broken a while ago for many iterators due to a bug introduced in 44c090c74202. It only accepts longs as valid hints, not ints
This affects 2.6 too (but that's in security-only fix mode), but not 3.x ---------- assignee: pjenvey messages: 165474 nosy: pjenvey priority: normal severity: normal status: open title: _PyObject_LengthHint only accepts longs type: performance versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15354> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com