Open GoogleCodeExporter opened 9 years ago
Could you elaborate more on this. I thought headers only lived in the scope of
a single request(...) call. How are added headers kept in the next call if they
are 'destroyed' at the end of the previous one. Unless "headers" exists outside
the request(...) and then there's that whole confusion of locals versus
pseudo-globals, etc.
Thank you
Original comment by dr.chamb...@gmail.com
on 11 Oct 2010 at 6:15
Hello,
In fact default values are evaluated only once and then live with the function.
See the « important waning » here for further details :
http://www.network-theory.co.uk/docs/pytut/DefaultArgumentValues.html
In this case, headers are being unexpectedly kept across subsequent requests.
Cheers,
David
Original comment by dmarclay...@gmail.com
on 12 Oct 2010 at 10:22
Original issue reported on code.google.com by
dmarclay...@gmail.com
on 8 Mar 2010 at 11:32