"/a" is not "/a" ?

Robert Kern robert.kern at gmail.com
Fri Mar 6 20:58:36 CET 2009

On 2009-03-06 13:46, Gary Herron wrote:
> Emanuele D'Arrigo wrote:
>> Hi everybody,
>> while testing a module today I stumbled on something that I can work
>> around but I don't quite understand.
> *Do NOT use "is" to compare immutable types.* **Ever! **

Well, "foo is None" is actually recommended practice....

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list