Which is more correct for compaing to None?
Emile van Sebille
emile at fenx.com
Sat May 12 20:21:16 EDT 2001
I think I'd use if not foo:
until-None-tests-true-ly y'rs
--
Emile van Sebille
emile at fenx.com
---------
<63.199.26.230 [nspurrier at bluelight.com]> wrote in message
news:GhkL6.144447$47.2082958 at news.bc.tac.net...
>
> Both of these seem to work. Which is more correct?
>
> if foo is None:
> print 'is'
>
> if foo == None:
> print '=='
>
> Yours,
> Noah
>
>
>
> ==================================
> Poster's IP address: 63.199.26.230
> Posted via http://nodevice.com
> Linux Programmer's Site
More information about the Python-list
mailing list