<p dir="auto">Documentation of 1.0.0 (<a href="http://docs.python-requests.org/en/v1.0.0/user/advanced/" rel="nofollow">http://docs.python-requests.org/en/v1.0.0/user/advanced/</a>) says<br>
<code class="notranslate">requests.session(auth=auth, headers=headers)</code> is a legitimate statement.</p>
<p dir="auto">However, reading the code I see that session(), nor Session.<strong>init</strong> do not take any arguments.<br>
<a href="https://github.com/kennethreitz/requests/blob/master/requests/sessions.py">https://github.com/kennethreitz/requests/blob/master/requests/sessions.py</a></p>
<p dir="auto">So if I have not misread anything, the docs should be fixed demonstrating the way to set persistent session-specific headers, auth etc.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="requests.session(**kwargs)
    Returns a Session for context-management."><pre class="notranslate"><code class="notranslate">requests.session(**kwargs)
    Returns a Session for context-management.
</code></pre></div>
<p dir="auto">This not longer works:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session = requests.Session(verify=not staging)

TypeError: __init__() got an unexpected keyword argument 'verify'"><pre class="notranslate"><code class="notranslate">session = requests.Session(verify=not staging)

TypeError: __init__() got an unexpected keyword argument 'verify'
</code></pre></div>