Timeline for Creating a string of random characters
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Apr 19, 2014 at 17:34 | comment | added | Josh Horowitz | @codesparkle Very cool. Thanks for the links. | |
Apr 18, 2014 at 6:53 | comment | added | Adam | @JamesFargotson The reason it works is that it is a generator expression, not a set comprehension, so the parentheses can be omitted on calls with only one argument. | |
Apr 18, 2014 at 6:07 | history | edited | 200_success | CC BY-SA 3.0 |
Recommend ascii_lowercase directly
|
Apr 18, 2014 at 5:08 | comment | added | Josh Horowitz | It works without the brackets when it's within joins parenthesis. I've been trying to figure out why. | |
Apr 18, 2014 at 4:53 | comment | added | vnp |
Looks like you missed []
|
|
Apr 18, 2014 at 4:53 | comment | added | Josh Horowitz | Wow. Set builder notation is amazing. Any idea why 'random.choice(string.ascii_uppercase + string.digits) for _ in range(N)' doesn't have to be in brackets? | |
Apr 18, 2014 at 4:49 | vote | accept | Josh Horowitz | ||
Apr 18, 2014 at 2:44 | history | answered | Tom Barron | CC BY-SA 3.0 |