[XML-SIG] WSDL library ?
Brian Quinlan
brian@sweetapp.com
Wed, 13 Feb 2002 14:23:48 -0800
Rich Salz wrote:
> One of the things I like about SOAP is that the RPC Encoding allows
you
> to tell the difference between:
> char *p, *q;
> p = q = "hello";
> and this:
> p = "hello";
> q = strdup(p);
>
> Simple apps don't care, but real RPC programmers do. :)
Why is this a good thing? Certainly in Python you have to use some
hackery to make sure you get the identity behavior that you want.
>>> a = b = "hello"
>>> a is b
1
>>> b = copy.deepcopy(a)
>>> a is b # too bad
1
>>> b = a[0] + a[1:] # ewwwwwwww!
>>> a is b
0
Cheers,
Brian