phylanx icon indicating copy to clipboard operation
phylanx copied to clipboard

Missing del operator for dictionaries

Open stevenrbrandt opened this issue 4 years ago • 1 comments

No support for del

from phylanx import Phylanx

@Phylanx
def foo():
    a = {"a":1, "b":2}
    del a["a"]

foo()

produces

AttributeError: 'PhySL' object has no attribute '_Delete'

Maybe this is a primitive that Karame could implement?

stevenrbrandt avatar Feb 12 '21 19:02 stevenrbrandt

First and foremost, this is missing from the frontend, but yah, we would need some backend support as well...

hkaiser avatar Feb 12 '21 21:02 hkaiser