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 May 2nd, 2013  |  syntax: Python  |  size: 0.15 KB  |  views: 43  |  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. def dma_workaround(l):
  2.         r = []
  3.         it = iter(l)
  4.         while True:
  5.                 try:
  6.                         r += reversed([next(it) for i in range(8)])
  7.                 except StopIteration:
  8.                         return r
clone this paste RAW Paste Data