On Wed, Nov 4, 2009 at 10:37 AM, Sebastian wrote:
> I have a question from the pyar list that may have been discussed on this
> list, but i didn't catch it.
> Have some common objects been somewhat hardcoded into python, like some
> integers as shown in the examples below? What other object have
teria used to select them? Any
hints?
cheers,
- Seb
>>> p = 500
>>> q = 500
>>> p == q
True
>>> p is q
False
>>> n = 50
>>> m = 50
>>> n == m
True
>>> n is m
True
>>> p = 500; q = 500
>>> p is q
True
>&g