Cookie module

Timothy O'Malley timo at alum.mit.edu
Fri Mar 17 06:39:48 CET 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