[docs] [issue17546] Document the circumstances where the locals() dict gets updated

anatoly techtonik report at bugs.python.org
Wed Mar 27 14:48:24 CET 2013


anatoly techtonik added the comment:

Example:

    l = locals()
    z = dict(a=5, b=3)

    lc = dict(l)
    zc = dict(z)

    print(lc == l)
    print(zc == z)

Gives:

    False
    True

----------

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


More information about the docs mailing list