Thank you Gary, Cédric, Christian. When *would *one use "is"?

Cédric... the problem I was having was purely an issue of comparison.... "if
file.tell() is 0L" was returning False. Strangely enough, "if file.tell() is
0" returns True in the right cases. I assume this is related to the None
case?

On Fri, Jun 27, 2008 at 11:47 AM, Christian Heimes <[EMAIL PROTECTED]> wrote:

> Gary Herron wrote:
> > In short:  *never* use "is".
>
> Never use "is" unless you want to check "if something is None or
> something is not None"
>
> Christian
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to