[issue15529] PyIter_Check evaluates to 0 for Python list object

2012-08-01 Thread Brett Cannon
Brett Cannon added the comment: I think Benjamin meant to say lists are iterables not iterators. =) -- nosy: +brett.cannon ___ Python tracker ___

[issue15529] PyIter_Check evaluates to 0 for Python list object

2012-08-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's because lists are iterators not iterable. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker __

[issue15529] PyIter_Check evaluates to 0 for Python list object

2012-08-01 Thread Tom Tromey
New submission from Tom Tromey: I was debugging this bug reported against gdb: http://sourceware.org/bugzilla/show_bug.cgi?id=14386 It turns out that what went wrong in this code was that PyIter_Check evaluates to 0 when its argument is a Python list. This happens because the PyIter_Check macr