Fast powerset function

Carsten Haese carsten at
Fri Jul 13 07:41:02 CEST 2007

On Thu, 12 Jul 2007 21:33:11 -0700, Arash Arfaee wrote 
> I need a powerset generator function. It's really slow with recursion. Does
anybody have any idea or code(!!) to do it in an acceptable time? 

1) Don't use recursion.

2) Google is your friend.


More information about the Python-list mailing list