mattia wrote: >> Note how get_roulette_wheel() is now completeley independent of the >> concrete problem you are using it for. > > Ok, but also a lot more memory consuming ;-)
I don't think so. Python references objects; therefore the list [tiny_little_thing]*N does not consume more memory than [big_fat_beast]*N Or did you have something else in mind? Peter -- http://mail.python.org/mailman/listinfo/python-list