Hi Denise, <br>
<br>
Have you tried 'print myjar.value'?<br><br>
Regards, <br>
<br>
Liam Clarke<br><div><span class="gmail_quote">On 6/29/05, <b class="gmail_sendername">D. Hartley</b> &lt;<a href="mailto:denise.hartley@gmail.com">denise.hartley@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone! Just a quick question about cookie jars:<br><br>when I create a myjar = cookielib.CookieJar(), and go to a website to<br>get the particular cookie, I get something like this in return:<br><br>&lt;cookielib.CookieJar
[Cookie(version=0, name='info', value='B',<br>port=None, port_specified=False, domain='.pythonchallenge.com',<br>domain_specified=True, domain_initial_dot=True, path='/',<br>path_specified=True, secure=False, expires=1120610689, discard=False,
<br>comment=None, comment_url=None, rest={})]&gt;<br><br>or, if I do print myjar, this:&nbsp;&nbsp;&lt;cookielib.CookieJar[&lt;Cookie info=B<br>for .pythonchallenge.com/&gt;]&gt; .<br><br>Now, if I wanted to pull out just the value from the cookie (
i.e., &quot;B&quot;<br>in this particular case, labelled as &quot;cookie info&quot; in the print<br>statement and 'value=' in the cookiejar instance), how could I do<br>that?<br><br>I have tried looking through the documentation and its examples, tried
<br>__doc__ and help() and dir() and can't find it.&nbsp;&nbsp;Perhaps I'm just<br>missing something, but does anyone know?<br><br>Thanks!<br><br>~Denise<br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">
Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br><br><br>-- <br>'There is only one basic human right, and that is to do as you damn well please.
<br>And with it comes the only basic human duty, to take the consequences.'