[Tutor] immutable objects

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Tue Oct 31 16:41:56 CET 2006


> 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)).

If you can include a stack trace of that error with SOAPpy, that would be 
excellent.  This sounds bizarre.

You won't be able to do anything with the ints: some of them are 
internally interned by the runtime, and you can't control this.  So I'd 
instead focus on why SOAPpy is failing.  It shouldn't have to worry about 
recursively traversing the ints: they don't have any structure to 
traverse!  So a stack trace would be useful.


More information about the Tutor mailing list