Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r90773:fff8e5f21bfd Date: 2017-03-20 23:30 +0100 http://bitbucket.org/pypy/pypy/changeset/fff8e5f21bfd/
Log: Finally found the cause of "global name 'self' is not defined" when running some combination of this lib-python and an older pypy diff --git a/lib-python/2.7/weakref.py b/lib-python/2.7/weakref.py --- a/lib-python/2.7/weakref.py +++ b/lib-python/2.7/weakref.py @@ -36,9 +36,9 @@ except ImportError: def _delitem_if_value_is(d, key, value): try: - if self.data[key] is value: # fall-back: there is a potential + if d[key] is value: # fall-back: there is a potential # race condition in multithreaded programs HERE - del self.data[key] + del d[key] except KeyError: pass _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit