1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed 25e7ce4

loosen the str cmp to fix test_methodcache's test_many_names. py3k likely
doesn't intern the names as often as default since they're originally unicode,
but default doesn't always intern every name either IIRC

  • Participants
  • Parent commits 2db1e0a
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/objspace/std/typeobject.py

View file
         cached_version_tag = cache.versions[method_hash]
         if cached_version_tag is version_tag:
             cached_name = cache.names[method_hash]
-            if cached_name is name:
+            if cached_name == name:
                 tup = cache.lookup_where[method_hash]
                 if space.config.objspace.std.withmethodcachecounter:
                     cache.hits[name] = cache.hits.get(name, 0) + 1