Chris Angelico <ros...@gmail.com>:

> On Sat, Feb 15, 2014 at 8:43 AM, Marko Rauhamaa <ma...@pacujo.net> wrote:
>> Unfortunately neither the "everything is a reference" model nor the
>> "small/big" model help you predict the value of an "is" operator in
>> the ambiguous cases.
>
> Can you give an example of an ambiguous case?

The "x is y" test may yield different outcomes in different, valid
Python implementations:

   4 is 4
   (x,) is (x,)
   "hello" is "hello"


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to