Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 8th, 2012  |  syntax: Python  |  size: 0.33 KB  |  views: 267  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import timeit
  2.  
  3. print timeit.repeat("array( 'B', map(ord,a) ).tostring()",setup="from array import array;a = list('all the world is a stage and all the men and women merely players')")
  4. print timeit.repeat("''.join(a)",setup="from array import array;a = list('all the world is a stage and all the men and women merely players')")