[Python-ideas] Propagating StopIteration value

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Oct 8 01:36:20 CEST 2012


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



More information about the Python-ideas mailing list