Paul Rubin wrote:
> Steven D'Aprano <st...@pearwood.info> writes:
>> It is never
>> correct to avoid using "is" when you need to compare for identity.
> 
> When is it ever necessary to compare for identity?
For example when providing a unique "sentinel" value as a function
argument.  The parameter must be tested for identity with the sentinel.

regards
 Steve
-- 
Steve Holden           +1 571 484 6266   +1 800 494 3119
Holden Web LLC                 http://www.holdenweb.com/
Want to know? Come to PyCon - soon! http://us.pycon.org/

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to