Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment: There is already a powerset() recipe in the docs. It was contributed by Eric Raymond. _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue5048> _______________________________________