Hi, all.

I want to improve speed of following simple function.
Any suggestion?

**********
def triple(inputlist):
  results = []
  for x in inputlist:
    results.extend([x,x,x])
  return results
**********

Thank you in advance,

Hyunchul
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to