1 2 3
``random.Random.choice()`` now raises ``IndexError`` for empty sequences consistently even when called from subclasses without a ``getrandbits()`` implementation.