Roulette wheel

Peter Otten __peter__ at
Thu Mar 5 10:46:58 CET 2009

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


does not consume more memory than 


Or did you have something else in mind?


More information about the Python-list mailing list