On Jun 20, 9:42 am, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Jun 20, 12:31 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > I am not certain why this is the case, but...
>
> > >>> a = 256
> > >>> b = 256
> > >>> a is b
>
> > True
>
> > >>> a = 257
> > >>> b = 257
> > >>> a is b
>
> > False
>
> > Can any
On Jun 20, 9:38 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Fri, 20 Jun 2008 09:31:57 -0700 (PDT), [EMAIL PROTECTED] wrote:
> >I am not certain why this is the case, but...
>
> a = 256
> b = 256
> a is b
> >True
>
> a = 257
> b = 257
> a is b
> >False
>
> >
I am not certain why this is the case, but...
>>> a = 256
>>> b = 256
>>> a is b
True
>>> a = 257
>>> b = 257
>>> a is b
False
Can anyone explain this further? Why does it happen? 8-bit integer
differences?
--
http://mail.python.org/mailman/listinfo/python-list