title: Python process Function
body: <p>I was looking through the Python docs and found a function called <code>process</code>. I have only seen it in use in the documentation of other features but it itself is not documented, as far as I can tell.</p>
  
  <p>Here are some examples from the documentation of when it is used.</p>
  
  <p>From <a href="https://docs.python.org/3/library/typing.html?highlight=process#typing.overload" rel="nofollow noreferrer"><code>@typing.overload</code></a>:</p>
  
  <pre><code>@overload
  def process(response: None) -&gt; None:
      ...
  @overload
  def process(response: int) -&gt; Tuple[int, str]:
      ...
  @overload
  def process(response: bytes) -&gt; str:
      ...
  def process(response):
      &lt;actual implementation&gt;
  </code></pre>
  
  <p>From <a href="https://docs.python.org/3/library/fileinput.html?highlight=process" rel="nofollow noreferrer"><code>fileinput</code></a>:</p>
  
  <pre><code>import fileinput
  for line in fileinput.input():
      process(line)
  </code></pre>
  
  <p>And finally, from <a href="https://docs.python.org/3/library/re.html?highlight=process#match-objects" rel="nofollow noreferrer"><code>Match objects</code></a></p>
  
  <pre><code>match = re.search(pattern, string)
  if match:
      process(match)
  </code></pre>
  
  <p>I am specifically interested in the last usage. My question is this, what is this <code>process</code> function and where is the documentation for it?</p>