[Python-ideas] Cookies insanity

Senthil Kumaran senthil at uthcode.com
Thu Aug 4 15:52:04 CEST 2011

On Thu, Aug 04, 2011 at 09:18:46AM -0400, Jim Jewett wrote:
> Intentionally ignoring the current API, so as to avoid getting bogged
> down in details...
>     from httpclient import fetcher
>     client=fetcher()  # support for cookies should be the default
>     response1=client.fetch(url1)
>     response2=client.fetch(url2)

That's a good feature request for the current module too.
It would be good idea to explore the positives and negatives of this
before deciding upon. One thing to keep in mind is that http and url
handling modules in stdlib are libraries, which provide a lot of
facilities with reasonable defaults.


More information about the Python-ideas mailing list