From 7800e385853f81f45fc08c805f4d42f650a446ba Mon Sep 17 00:00:00 2001 From: gwen Date: Fri, 13 Jul 2012 11:25:31 +0200 Subject: [PATCH] getitem for multis --- src/option.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/option.py b/src/option.py index 9339e12..ce06324 100644 --- a/src/option.py +++ b/src/option.py @@ -42,7 +42,9 @@ class Multi(list): value = super(Multi, self).__getitem__(key) if value is None: return self.child.default_multi - + else: + return value + def __setitem__(self, key, value): if value is None: owner = 'default'