[Date Prev] [Date Next] [Thread Prev] [Thread Next] Indexes: Date | Thread | Author

[XML-SIG] WSDL library ?


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. :)    (01)

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

>>> 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    (03)

Cheers,
Brian    (04)