From 3305aa2a5fd0a5fbfe1bedf572aae4ea02533777 2010-01-05 04:09:14 From: Dav Clark Date: 2010-01-05 04:09:14 Subject: [PATCH] diff I sent to Fernando --- diff --git a/IPython/utils/traitlets.py b/IPython/utils/traitlets.py index 960c19c..4ff334a 100644 --- a/IPython/utils/traitlets.py +++ b/IPython/utils/traitlets.py @@ -978,6 +978,8 @@ class List(Instance): args = ((),) elif isinstance(default_value, SequenceTypes): args = (default_value,) + else: + raise TypeError('default value of List was %s' % default_value) super(List,self).__init__(klass=list, args=args, allow_none=allow_none, **metadata)