title: Using timeit module in a function with arguments
body: <p>Example from <a href="http://docs.python.org/2/library/timeit.html#module-timeit" rel="noreferrer">documentation</a></p>
  
  <pre><code>def test():
      """Stupid test function"""
      L = []
      for i in range(100):
          L.append(i)
  
  if __name__ == '__main__':
      import timeit
      print(timeit.timeit("test()", setup="from __main__ import test"))
  </code></pre>
  
  <p>but how to call a function with parameters, for example, a function like this:</p>
  
  <pre><code>def test(some_object):
      """Stupid test function"""
      L = []
      for i in range(100):
          L.append(some_object)
  </code></pre>