Message6260

Author ron
Recipients ron
Date 2010-11-23.23:35:12
SpamBayes Score 1.1934898e-13
Marked as misclassified No
Message-id <1290555313.58.0.687714010158.issue1679@psf.upfronthosting.co.za>
In-reply-to
Content
Problem:
Unfortunately I can't reproduce it outside a complex application. Basically, iterating on a set (or list obtained from that set with list(the_set)) breaks after a random number of elements retrieved (random = 0..) with TypeError: 'instance' object is not iterable.

With debug printing added, this happens in the middle of the iteration (for example, after element 5 in a 11-element list).

If I manually retrieve the_list.__iter__() and repeatedly call next() on it, I can iterate over the elements fine (until a StopIteration exception as expected at the end).

Does this ring any bell? Or could you give me pointers how to deep-debug it? I fear a simple test-case can't be easily created from current code.

Platform: Linux/Debian x86, JDK 1.6.0, both update 20 and 22 (standard binary install), jython 2.5.1 from netbeans package manager (also tested with 2.5.2rc2:7176.)
History
Date User Action Args
2010-11-23 23:35:13ronsetrecipients: + ron
2010-11-23 23:35:13ronsetmessageid: <1290555313.58.0.687714010158.issue1679@psf.upfronthosting.co.za>
2010-11-23 23:35:13ronlinkissue1679 messages
2010-11-23 23:35:12roncreate