![](https://secure.gravatar.com/avatar/72ee673975357d43d79069ac1cd6abda.jpg?s=120&d=mm&r=g)
Oct. 7, 2012
11:36 p.m.
Serhiy Storchaka wrote:
The conflict easily solved if instead of standard itertools.chain to use handwriten code. It looks as bug in itertools.chain.
Don't underestimate the value of handwritten code. It makes the intent clear to the reader, whereas relying on some arbitrary default behaviour of a function doesn't. -- Greg