Message22528
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>. |
|
Date |
User |
Action |
Args |
2007-08-23 14:26:25 | admin | link | issue1033038 messages |
2007-08-23 14:26:25 | admin | create | |
|