[Python-Dev] Possible patch for functools partial - Interested?

Stephen J. Turnbull stephen at xemacs.org
Wed May 12 10:34:50 CEST 2010


Lie Ryan writes:
 > it disappoints me this does not compare equal:
 > 
 > add3 = lambda a, b, c: a + b + c
 > a = partial(partial(add3, 1), 2)
 > b = partial(partial(add3, 2), 1)
 > print a == b
 > 
 > :-)

But it's not even true for floating point.<wink>


More information about the Python-Dev mailing list