diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-10-10 02:54:41 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-10-10 02:54:41 -0700 |
| commit | b02cc8d49513cdcc54f4421e71db3512354d4e2e (patch) | |
| tree | 2a3a83e1f99a1108eedb703d2cf8ed43613b2c22 /ricky/param/selection.py | |
| parent | 52d85ddcb9c934ec4dc0e890633762bfa2ff51f5 (diff) | |
renamed options to selections
Diffstat (limited to 'ricky/param/selection.py')
| -rw-r--r-- | ricky/param/selection.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ricky/param/selection.py b/ricky/param/selection.py new file mode 100644 index 0000000..93a8388 --- /dev/null +++ b/ricky/param/selection.py @@ -0,0 +1,9 @@ +class Selection(dict): + def __init__(self, **kwargs): + super(Selection, self).__init__(**kwargs) + self.value = kwargs["value"] + self.weight = kwargs["weight"] + def __getattr__(self, attr): + return self.get(attr) + __setattr__= dict.__setitem__ + __delattr__= dict.__delitem__ |
