Guido van Rossum added the comment: Can't you use a namedtuple? Then printing it would show the names of the flags... __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1816> __________________________________