icmp - should this go in itertools?

Roy Smith roy at panix.com
Fri Nov 25 21:58:00 EST 2005


Tom Anderson <twic at urchin.earth.li> wrote:

> It's modelled after the way cmp treats lists - if a and b are lists, 
> icmp(iter(a), iter(b)) should always be the same as cmp(a, b).
> 
> Is this any good? Would it be any use? Should this be added to itertools?

Whatever happens, please name it something other than icmp.  When I read 
"icmp", I think "Internet Control Message Protocol".



More information about the Python-list mailing list