Nick Coghlan added the comment: Very nice solution Amaury. As far as I can tell, this should be backported to 2.5 as well. _____________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1750076> _____________________________________