Comment 6 for bug 525366

Revision history for this message
David Glick (davisagli) wrote :

Cool, thanks. Not sure if you found the cause of the problem with 'in' already, but in case it helps, here's an interpreter session where I was noticing weirdness with it:

davisagli:pynie davidg$ ./pynie
Pynie: a Python compiler for Parrot.
>>> a = {'bar':1}
>>> 'bar' in a
Unable to set lvalue on PAST::Val node
>>> 'bar' not in a
Unable to set lvalue on PAST::Val node
>>> print('bar' in a)
bar

where expected output would be:

>>> davisagli:pynie davidg$ python3.1
Python 3.1.1 (r311:74480, Feb 22 2010, 17:09:30)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = {'bar':1}
>>> 'bar' in a
True
>>> 'bar' not in a
False
>>> print('bar' in a)
True