The code
x = 3
def f():
exec("x = 2")
print(x)
f()
runs on both Python 2 and Python 3, but prints different results. Is this change documented anywhere? (A pointer to a mailing list discussion would also be fine -- I ask this purely out of curiosity.)