Steven D'Aprano added the comment:

Confirmed that in Python 2.7 calling g() before and after modifying the dict 
prints 3 both times; calling g() before modifying the dict prints 3, then after 
modifying it prints 5.

Python 3.3 behaves like 2.7, so this sounds like a regression in 3.5 or maybe 
3.4.

----------
nosy: +steven.daprano
versions: +Python 3.4, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29532>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to