[pypy-issue] [issue1101] Can't use unicode string as key in __dict__ attribute

papaeye tracker at bugs.pypy.org
Sat Mar 31 10:18:42 CEST 2012


New submission from papaeye <papaeye at gmail.com>:

In PyPy 1.8 on Mac OS X 10.7.3 and nightly binary 
build(http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-54086-4f1f458bedae-
linux64.tar.bz2) on Debian 6.0.4:

>>> class Foo(object): attribute = 'foo'
>>> 'attribute' in Foo.__dict__
True
>>> u'attribute' in Foo.__dict__
False
>>> d = {'foo': 'bar'}
>>> 'foo' in d
True
>>> u'foo' in d
True

In CPython 2.5.6/2.6.7/2.7.2 and Jython 2.5.2 on Mac OS X 10.7.3, all of the 
above return True.

----------
nosy: +papaeye
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1101>
________________________________________


More information about the pypy-issue mailing list