From cd02beecffc00a2b9200901629c2990cf9ed9cad Mon Sep 17 00:00:00 2001 From: pi-rho Date: Sat, 18 Aug 2012 09:12:35 -0500 Subject: [PATCH] Add a __delitem__ dictionary method to ip.Packet --- netarch/ip.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netarch/ip.py b/netarch/ip.py index e1298f0..5163c2e 100644 --- a/netarch/ip.py +++ b/netarch/ip.py @@ -535,6 +535,9 @@ class Packet(UserDict.DictMixin): def __setitem__(self, k, v): self.params[k] = v + def __delitem__(self, k): + del self.params[k] + def __getitem__(self, k): return self.params[k]