Message106450
I've looked into this in some more depth.
The problem is that Untokenizer.compat is assuming that iterable can restart from the beginning, when Untokenizer.untokenize has already had the first element out. So it works with a list, but not with a generator.
In particular, untokenize is broken for any input that is a generator which only supplies the first two elements.
Workaround: never hand untokenize a generator. Expand generators to lists first instead. |
|
Date |
User |
Action |
Args |
2010-07-10 04:08:08 | loewis | set | spambayes_score: 0.930489 -> 0.0 |
2010-05-25 16:57:26 | rb | link | issue8478 messages |
2010-05-25 16:57:25 | rb | create | |
|