Select fails when cookie tried to get a numeric value

Zero Piraeus z at etiol.net
Sat Oct 5 11:06:49 EDT 2013


:

On Sat, Oct 05, 2013 at 05:40:23PM +0300, Νίκος Αλεξόπουλος wrote:
> When i print CookieID i was under the impression i would see a
> random number like '5369' but instead it display the follwong.
> 
> Set-Cookie: ID="Set-Cookie: ID=5369"

On Sat, Oct 05, 2013 at 05:47:54PM +0300, Νίκος Αλεξόπουλος wrote:
> When i print CookieID i was under the impression i would see a
> random number like '5369' but instead it display the follwong.
> 
> Set-Cookie: ID="Set-Cookie: ID=5369"

Please don't give identical or near-identical replies to multiple
messages in the thread; other members of the list are either reading all
of your posts or none of them, so repeating yourself like this is only
going to irritate whoever is reading.

Since printing cookieID doesn't produce the output you expect, the
obvious next step is to look up the documentation for whatever kind of
object it is. You can find out its type with

    type(cookieID)

... and then once you know that type (let's say for the sake of argument
it's a Biscuit object), find out about that type of object's attributes
either by googling for the docs or at the interpreter with

    help(Biscuit)

As previously mentioned, there's likely to be some kind of 'value'
attribute that will return just the number you want.

 -[]z.

-- 
Zero Piraeus: post scriptum
http://etiol.net/pubkey.asc



More information about the Python-list mailing list