Iterator addition

Reinhold Birkenfeld reinhold-birkenfeld-nospam at
Sun Nov 13 17:31:32 CET 2005

bearophileHUGS at wrote:
> Tom Anderson:
>> And we're halfway to looking like perl already! Perhaps a more pythonic
>> thing would be to define a "then" operator:
>> all_lines = file1 then file2 then file3
> Or a "chain" one:
>> all_lines = file1 chain file2 chain file3

That's certainly not better than the chain() function. Introducing new operators
for just one application is not pythonic.


More information about the Python-list mailing list