Re: strange test for None

2007-02-03 Thread karoly.kiripolszky
the tested variable was really a string containing "None" instead of simply None. this is the first time i ran into this error message confusion. :) thanks for the help! On Feb 3, 6:29 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > On Feb 3, 2007, at 7:47 AM, karoly.kiripolszky wrote: > > > in

Re: strange test for None

2007-02-03 Thread Michael Bentley
On Feb 3, 2007, at 7:47 AM, karoly.kiripolszky wrote: > in my server i use the following piece of code: > > ims = self.headers["if-modified-since"] > if ims != None: > t = int(ims) > > and i'm always getting the following error: > > t = int(ims) > Value

Re: strange test for None

2007-02-03 Thread rzed
"karoly.kiripolszky" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > in my server i use the following piece of code: > > ims = self.headers["if-modified-since"] > if ims != None: > t = int(ims) > > and i'm always getting the following error: > >

Re: strange test for None

2007-02-03 Thread Peter Otten
karoly.kiripolszky wrote: > in my server i use the following piece of code: > > ims = self.headers["if-modified-since"] > if ims != None: > t = int(ims) > > and i'm always getting the following error: > > t = int(ims) > ValueError: invalid literal for

Re: strange test for None

2007-02-03 Thread skip
> "karoly" == karoly kiripolszky writes: karoly> in my server i use the following piece of code: karoly> ims = self.headers["if-modified-since"] karoly> if ims != None: karoly> t = int(ims) karoly> and i'm always getting the followi

Re: strange test for None

2007-02-03 Thread karoly.kiripolszky
forgot to mention my interpreter version: 2.4.4 -- http://mail.python.org/mailman/listinfo/python-list

strange test for None

2007-02-03 Thread karoly.kiripolszky
in my server i use the following piece of code: ims = self.headers["if-modified-since"] if ims != None: t = int(ims) and i'm always getting the following error: t = int(ims) ValueError: invalid literal for int(): None i wanna know what the hell is goi

strange test for None

2007-02-03 Thread karoly.kiripolszky
in my server i use the following piece of code: ims = self.headers["if-modified-since"] if ims != None: t = int(ims) and i'm always getting the following error: t = int(ims) ValueError: invalid literal for int(): None i wanna know what the hell is goi