On 10/31/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
Premnath Sah wrote:
> I would like to know how i can guarantee that a new immutable object is
> infact a new object.
>
> Example:
>
>  >>> a = 1
>  >>> b = 1
>  >>> a is b
> True
>
> is what i get. i want a and b to be two different object.

I don't think there is any way to control this for the builtin types.
Why do you care?

Im facing a problem with SOAPpy which checks for recursive objects using id(obj).

In my case value for 2 SOAP headers are same and iam getting a recursion error. if i pass different object with same value SOAPpy does not complain (by using str(value) and unicode(value)).

Thanks

Premnath Sah T. H.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to