Message58536
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". |
| File name |
Uploaded |
|
bug.py
|
mark,
2007-12-13.15:41:06
|
|
| Date |
User |
Action |
Args |
| 2007-12-13 15:41:06 | mark | set | spambayes_score: 0.11755 -> 0.11755 recipients:
+ mark |
| 2007-12-13 15:41:06 | mark | set | spambayes_score: 0.11755 -> 0.11755 messageid: <1197560466.82.0.156189455789.issue1612@psf.upfronthosting.co.za> |
| 2007-12-13 15:41:06 | mark | link | issue1612 messages |
| 2007-12-13 15:41:06 | mark | create | |
|