--
failing tests for removing items from lists and dicts
https://bugs.launchpad.net/bugs/525366
You received this bug notification because you are a member of pynie-
dev, which is the registrant for Pynie.
Status in Pynie - Python on Parrot: New
Bug description:
I was also inspired by your talk to try out pynie, and ended up adding a couple tests demonstrating that you can't yet use "del" to remove items from lists or dicts.
I was also inspired by your talk to try out pynie, and ended up adding a
couple tests demonstrating that you can't yet use "del" to remove items
from lists or dicts.
** Affects: pynie
Importance: Undecided
Status: New
** Attachment added: "item_removal_tests_revised.patch"
http://launchpadlibrarian.net/39559383/item_removal_tests_revised.patch
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