Konstantin Enchant added the comment: The problem happens only when "nonlocal __something" in a class method. In your case f2() isn't class method.
More interesting behavior with underscores - https://gist.github.com/sirkonst/6eff694c4546700417ea ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25973> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com