Closed callamd closed 4 years ago
@Chalarangelo why do we import things without their namespace? I thought it was generally accepted that in production codebases something like namespace.method
is preferable to method
.
I can update this PR to add a description for random.choice
; I do think it is a more pythonic way of retrieving a random element from a list.
Thanks!
Things are imported like this across the board for consistency and brevity. Using random.choice()
seems like a good idea, you can update the description if you like.
If you want the code to be character by character as you've suggested you can do it.
Pythonic import + choice method
Description
Resolves #(issue number)
What does your PR belong to?
Types of changes
Checklist: