[python] erase element from dict
on Fri Nov 16 2007, Gennadiy Rozental
How do I do the subject?
You could give more context for your question, but after some head-scratching I've concluded you want: d.attr("__delitem__")(item) Does that help? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
David Abrahams
on Fri Nov 16 2007, Gennadiy Rozental
wrote: How do I do the subject?
You could give more context for your question, but after some head-scratching I've concluded you want:
d.attr("__delitem__")(item)
Does that help?
Thanks, I just wonder was it did not make it into C++ interface. Gennadiy
on Sat Nov 17 2007, Gennadiy Rozental
David Abrahams
writes: on Fri Nov 16 2007, Gennadiy Rozental
wrote: How do I do the subject?
You could give more context for your question, but after some head-scratching I've concluded you want:
d.attr("__delitem__")(item)
Does that help?
Thanks,
I just wonder *why* it did not make it into C++ interface.
Nobody wrote, documented, and tested a "del" function. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (2)
-
David Abrahams
-
Gennadiy Rozental