Roulette wheel

Peter Otten __peter__ at web.de
Thu Mar 5 04:46:58 EST 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

[tiny_little_thing]*N 

does not consume more memory than 

[big_fat_beast]*N

Or did you have something else in mind?

Peter




More information about the Python-list mailing list