[issue17932] Win64: possible integer overflow in iterobject.c

2013-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52075f60719e by Victor Stinner in branch 'default': Issuse #17932: Fix an integer overflow issue on Windows 64-bit in tuple http://hg.python.org/cpython/rev/52075f60719e -- ___ Python tracker

[issue17932] Win64: possible integer overflow in iterobject.c

2013-06-04 Thread STINNER Victor
Changes by STINNER Victor : -- stage: committed/rejected -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue17932] Win64: possible integer overflow in iterobject.c

2013-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 757a121a27c2 by Victor Stinner in branch 'default': Close #17932: Fix an integer overflow issue on Windows 64-bit in iterators: http://hg.python.org/cpython/rev/757a121a27c2 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rej

[issue17932] Win64: possible integer overflow in iterobject.c

2013-05-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Create a class with a __getitem__ method but no __iter__: class Seq (object): def __len__(self): return 5 def __getitem__(self, idx): if idx > len(self): raise IndexError(idx) return idx * 2 i = iter(Seq()) --

[issue17932] Win64: possible integer overflow in iterobject.c

2013-05-07 Thread STINNER Victor
New submission from STINNER Victor: seqiterobject.it_index type is long, whereas iter_setstate() uses a Py_ssize_t. It would be safer to use Py_ssize_t type for seqiterobject.it_index. The issue emits a compiler warning on Windows 64-bit. iterator.__getstate__() was introduced in Python 3.3, s

[issue17932] Win64: possible integer overflow in iterobject.c

2013-05-07 Thread STINNER Victor
STINNER Victor added the comment: I don't know how to create an "iterator" object. How can I do that? -- ___ Python tracker ___ ___ Py