[pypy-svn] pypy commit 20c28decae46: being pedantic about is verus is_w
Bitbucket
commits-noreply at bitbucket.org
Thu Dec 16 03:43:52 CET 2010
# HG changeset patch -- Bitbucket.org
# Project pypy
# URL http://bitbucket.org/pypy/pypy/overview
# User Benjamin Peterson <benjamin at python.org>
# Date 1292467484 21600
# Node ID 20c28decae46ff7b47dcbd30e7d51655d87ef3aa
# Parent 2088ce763fc22fbd4b5912e03bd5dc59e066b657
being pedantic about is verus is_w
--- a/pypy/objspace/std/dicttype.py
+++ b/pypy/objspace/std/dicttype.py
@@ -60,7 +60,7 @@ def descr_fromkeys(space, w_type, w_keys
from pypy.objspace.std.dictmultiobject import W_DictMultiObject
if w_fill is None:
w_fill = space.w_None
- if w_type is space.w_dict:
+ if space.is_w(w_type, space.w_dict):
w_dict = W_DictMultiObject.allocate_and_init_instance(space, w_type)
for w_key in space.listview(w_keys):
w_dict.setitem(w_key, w_fill)
More information about the Pypy-commit
mailing list