From 9e4f0294111d26228af46cd82f90288861c10ea7 2013-07-08 23:30:55 From: MinRK Date: 2013-07-08 23:30:55 Subject: [PATCH] don't blacklist builtin names it is wholly appropriate for a class to have a `format` trait, or similar, but Config prohibits it. This just removes that prohibition. --- diff --git a/IPython/config/loader.py b/IPython/config/loader.py index fc5374b..2a4e4d1 100644 --- a/IPython/config/loader.py +++ b/IPython/config/loader.py @@ -173,10 +173,6 @@ class Config(dict): return dict.__getitem__(self, key) def __setitem__(self, key, value): - # Don't allow names in __builtin__ to be modified. - if hasattr(builtin_mod, key): - raise ConfigError('Config variable names cannot have the same name ' - 'as a Python builtin: %s' % key) if self._is_section_key(key): if not isinstance(value, Config): raise ValueError('values whose keys begin with an uppercase '