title: Python3 how to asyncio.gather() a list of partial functions
body: <p>I'm attempting to create a list of coroutines that can be passed to asyncio.gather()</p>
  
  <p>However, I want to attach arguments to these coroutines as I append them to the list. </p>
  
  <p>My current method shown below uses functools.partial. Unfortunately asyncio.gather doesn't accept a partial function, which makes sense.</p>
  
  <p>What doesn't make sense to me is how to find a solution.</p>
  
  <p>Example code:</p>
  
  <pre><code>async def test(arg1):
      print(arg1)
  
  statements = []
  
  function = functools.partial(test, "hello world")
  statements.append(function)
  
  results = await asyncio.gather(*statements)
  </code></pre>
  
  <p>So how do I attach arguments to a function so that it can still be passed to asyncio.gather?</p>
  
  <p>*EDIT</p>
  
  <p>It seems I was being rather silly.</p>
  
  <p>My solution was rather simple, don't use functools.partial and just append the coroutine straight to the list. </p>
  
  <p>Code:</p>
  
  <pre><code>async def test(arg1):
      print(arg1)
  
  async def main():
      statements = []
      statements.append(test("hello_world"))
      results = await asyncio.gather(*statements)
  
  loop = asyncio.get_event_loop()
  loop.run_until_complete(main())
  </code></pre>