[issue21130] equivalent functools.partial instances should compare equal

Thomas Heller report at bugs.python.org
Wed Apr 2 12:39:27 CEST 2014


Thomas Heller added the comment:

Sure.  I'm not sure 'equivalent' is the word I should have used.

I suggest (and I would have expected) that partial instances (a, b) should compare equal when

  a.func == b.func \
  and a.args == b.args \
  and a.keywords == b.keywords

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21130>
_______________________________________


More information about the Python-bugs-list mailing list