How to grab a number from inside a .html file using regex

MRAB python at
Sat Aug 7 22:07:01 CEST 2010

Thomas Jollans wrote:
> On 08/07/2010 09:36 PM, Νίκος wrote:
>> cookie.has_key('visitor') != 'nikos'
> This is always True. has_key returns a bool, which is never equal to any
> string, even 'nikos'.

I missed that bit! :-)

Anyway, the OP said "the 'stuff' never gets executed". Kinda puzzling...

More information about the Python-list mailing list