[New-bugs-announce] [issue29532] functools.partial is not compatible between 2.7 and 3.5

Naoyuki Kamo report at bugs.python.org
Sat Feb 11 02:20:01 EST 2017


New submission from Naoyuki Kamo:

The code:
from functools import partial
def f(a):
    print(a)
d = {'a': 3}
g = partial(f, **d)
g()
d['a'] = 5 
g()

On python2.7, gets
3
but on python3.5, gets
5

is it a bug?

----------
messages: 287594
nosy: naoyuki
priority: normal
severity: normal
status: open
title: functools.partial is not compatible between 2.7 and 3.5
type: behavior
versions: Python 3.5

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


More information about the New-bugs-announce mailing list