Jason Friedman wrote:
I saw this posted in the July issue but did not see any follow-up there:
$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
a = 500
b = 500
a == b
True
a is
On 5-4-2010 13:48, superpollo wrote:
Jason Friedman ha scritto:
I saw this posted in the July issue but did not see any follow-up there:
$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
a = 500
On Mon, 2010-04-05 at 11:38 +, Jason Friedman wrote:
> I saw this posted in the July issue but did not see any follow-up there:
>
> $ python
> Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
> [GCC 4.4.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
Jason Friedman ha scritto:
I saw this posted in the July issue but did not see any follow-up there:
$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
a = 500
b = 500
a == b
True
a is b
False
Python caches objects for reuse, but I'm not too certain on how it works,
either. Seems a bit odd. I just tested on 2.6.5 and got the same result.
This hasn't been a problem for me, though.
Cheers,
Xav
--
http://mail.python.org/mailman/listinfo/python-list