1. Bobby Impollonia
  2. pypy


Bobby Impollonia  committed f36e05a

Change function comparison in _threading_local to use == instead of is.
This makes threadlocal objects correctly check whether they are given initialization arguments
and gets test_threading_local to pass.

  • Participants
  • Parent commits b50251f
  • Branches default

Comments (0)

Files changed (1)

File lib-python/modified-2.7.0/_threading_local.py

View file
         object.__setattr__(self, '_local__args', (args, kw))
         object.__setattr__(self, '_local__lock', RLock())
-        if (args or kw) and (cls.__init__ is object.__init__):
+        if (args or kw) and (cls.__init__ == object.__init__):
             raise TypeError("Initialization arguments are not supported")
         # We need to create the thread dict in anticipation of