Emanuele D'Arrigo wrote:

>>>> c = "/a"
>>>> d = "/a"
>>>> c == d
> True               # all good so far
>>>> c is d
> False             # eeeeek!
> 
> Why c and d point to two different objects with an identical string
> content rather than the same object?

Because you instantiated two difference objects.
http://docs.python.org/reference/datamodel.html#objects-values-and-types
should get you started on Python and objects.

j

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

Reply via email to