On Mar 10, 11:36 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Mon, 10 Mar 2008 07:39:25 -0700, Gary Herron wrote:
> > If either is a surprise, then understand that the "is" operator should
> > probably *never* be used with immutable types.
>
> Mutable or immutable, it makes no difference: "is" is for testing
> identity, == is for testing equality. If you need to test for identity,
> use "is". If you need to test for equality, use ==.

What is the notion of equal defined for functions?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to