In article <532b8f0d$0$29994$c3e8da3$5496439d at news.astraweb.com>, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote: > The rule of three applies here: anything you do in three different places > ought to be managed by a function. I prefer the rule of two :-)