[New-bugs-announce] [issue21130] equivalent functools.partial instances should compare equal

Thomas Heller report at bugs.python.org
Wed Apr 2 09:57:52 CEST 2014


New submission from Thomas Heller:

I think that 'equivalent' functools.partial objects should compare equal, so the following snippet SHOULD print True:

>>> import functools
>>> f = lambda x: x
>>> a = functools.partial(f, 42)
>>> b = functools.partial(f, 42)
>>> a == b
False
>>>

----------
components: Library (Lib)
messages: 215363
nosy: theller
priority: normal
severity: normal
status: open
title: equivalent functools.partial instances should compare equal
type: behavior

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


More information about the New-bugs-announce mailing list