This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2004-09-28.02:33:32
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

No, I don't want to change this either.  choice() is one of the 
few library functions where speed matters a lot, and checking 
for invalid arguments *just* to give a wordier error message 
would be a losing tradeoff because of that.  If you want to 
add a line to the docs, that's cool, but not "If the sequence 
is empty, raises TypeError".  That's a bad idea because it 
actually raises IndexError <wink>.
History
Date User Action Args
2007-08-23 14:26:25adminlinkissue1033038 messages
2007-08-23 14:26:25admincreate