Stack Exchange
log in
chat
meta
about
Stack Exchange
All Sites
Hot Questions
Top Users
Newsletters
Blogs
ilalex
Russia
localhost:8080
Age: 25
java programmer
top
accounts
reputation
activity
favorites
subscriptions
all
accepts
posts
badges
comments
revisions
reviews
May
1
comment
Fastest method to generate big random string with lower Latin letters
I wrote them a letter about this issue and they have confirmed that they have bug with definition OLE in Python.
May
1
accepted
Fastest method to generate big random string with lower Latin letters
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
edited body
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
added 381 characters in body
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
I still have not solved this problem in python3.3, but I learned a lot thanks to you.
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
deleted 3 characters in body
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
added 425 characters in body
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
Thank you! The latest is fastest.
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
added 259 characters in body
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
added 998 characters in body
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
Avoiding ''.join() is slower.
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
It takes 1.198s, but your solution above works for 0.979s.
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
I'm trying to use list comprehension in that way: for a in [choice(ascii_lowercase) for _ in range(1000000)]: stdout.write(a) But it takes more time than your code above.
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
added 35 characters in body
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
How to use list comprehension if I need a string to write in stdout?
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
added 76 characters in body
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
0.9s. It is great!
Apr
30
revised
Fastest method to generate big random string with lower Latin letters
added 76 characters in body
Apr
30
comment
Fastest method to generate big random string with lower Latin letters
I can do it in C++. I want to know: is there way to do it Python?
Apr
30
awarded
Autobiographer
1
2
3
4
5
next
Stack Exchange works best with JavaScript enabled