Message 287594 - Python tracker
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?
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?