Ciprian Dorin, Craciun:
> Python way:
> ---------
> def eq (a, b) :
>     return a == b
>
> def compare (a, b, comp = eq) :
>     if len (a) != len (b) :
>         return False
>     for i in xrange (len (a)) :
>         if not comp (a[i], b[i]) :
>             return False
>     return True

That's not "pythonic".

Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to