[Python-Dev] Change to logging Formatters: support for alternative format styles

Vinay Sajip vinay_sajip at yahoo.co.uk
Tue Oct 26 13:55:14 CEST 2010


Nick Coghlan <ncoghlan <at> gmail.com> writes:
> Looking at your checkin though, I wonder if it might be worth
> implementing some little formatting style classes to get rid of the
> if/elif chains from the Formatter code. Something like:

Fair comment: I did think about the messiness of that if/elif, but considered it
OK as it was likely that Python would not grow any more formatting approaches.
However, I hadn't thought about user-defined approaches; what you're suggesting
is more extensible.

I'll incorporate your and Boštjan's comments in the next checkin.

Thanks,

Vinay



More information about the Python-Dev mailing list