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
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
"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:
>
>
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
> "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
forgot to mention my interpreter version: 2.4.4
--
http://mail.python.org/mailman/listinfo/python-list
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
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