Random from Dictionary

Martin von Loewis loewis at informatik.hu-berlin.de
Thu Oct 18 13:24:40 EDT 2001


> Perhaps I'm coming in on this thread a bit late (don't remember seeing it
> and can't find it at Google Groups, however, so maybe it just hasn't fully
> propagated around), but I see nothing in the doc string for random.choice
> that suggests it should work with a dictionary.  Where's the bug?

There is no bug; it's just that Emile van Sebille was claiming that
you could use random.choice on a dictionary.

Regards,
Martin




More information about the Python-list mailing list