Paul Moore <p.f.moore <at> gmail.com> writes:

> One option I would have found useful in some code I wrote would be to
> extend the configuration -
> 
> class DictConfigurator:
>    ...
>    def extend(self, moreconfig):
>       import copy
>       more = copy.deepcopy(moreconfig) # Not sure if this is needed?
>       self.config.update(more)

See my response to Paul Rudin's post about incremental configuration.

Regards,

Vinay Sajip


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to