Cookie module

Timothy O'Malley timo at alum.mit.edu
Fri Mar 17 00:39:48 EST 2000


hola.

Close.

Lenny Self <lenny at squiggie.com> wrote:
> Your code should read:
> 
> ck = Cookie.SmartCookie()
> ck.load(os.environ["HTTP_COOKIE"])
> L = ck("ogin").value

Close.
The third line should use brackets, not parentheses.  Cookies work
like dictionaries:

    L = ck["ogin"].value



More information about the Python-list mailing list