[New-bugs-announce] [issue15354] _PyObject_LengthHint only accepts longs

Philip Jenvey report at bugs.python.org
Sun Jul 15 02:14:40 CEST 2012


New submission from Philip Jenvey <pjenvey at 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 <report at bugs.python.org>
<http://bugs.python.org/issue15354>
_______________________________________


More information about the New-bugs-announce mailing list