This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark
Recipients mark
Date 2007-12-13.15:41:06
SpamBayes Score 0.11755048
Marked as misclassified No
Message-id <1197560466.82.0.156189455789.issue1612@psf.upfronthosting.co.za>
In-reply-to
Content
In the attached file there are two tiny functions, flatten1() and
flatten2(). There is only one difference between them:
flatten1() has the line:
    if isinstance(x, list):
and flatten2() has this line instead:
    if isinstance(x, collections.Sequence):

flatten1() works perfectly in Python 2.5.1 and Python 30a2 (just comment
out the flatten2() code).
But flatten2() goes into "infinite" recursion in Python 30a2 when trying
to flatten list "c".
Files
File name Uploaded
bug.py mark, 2007-12-13.15:41:06
History
Date User Action Args
2007-12-13 15:41:06marksetspambayes_score: 0.11755 -> 0.11755048
recipients: + mark
2007-12-13 15:41:06marksetspambayes_score: 0.11755 -> 0.11755
messageid: <1197560466.82.0.156189455789.issue1612@psf.upfronthosting.co.za>
2007-12-13 15:41:06marklinkissue1612 messages
2007-12-13 15:41:06markcreate