Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63774:25e7ce4956dd
Date: 2013-04-30 13:49 -0700
http://bitbucket.org/pypy/pypy/changeset/25e7ce4956dd/
Log: 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
diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -392,7 +392,7 @@
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit