Re: [Pyobjc-dev] NSString & mutability
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-02-04 20:42:53
|
Just van Rossum wrote: > However, str() fails: > > >>> str(x) > Traceback (most recent call last): > File "<stdin>", line 1, in ? > TypeError: __str__ returned non-string (type NSCFString) > >>> > > I can't seem to find where I can repair this. Ok, I understand why it happens: __str__ returns [obj description], and when we convert _all_ strings, this automatically works correctly, but if we don't it doesn't <wink>, since it seems any NSString just returns self from description. But now I don't know how to work around that... Any hints? (Btw. I've found Lib/objc/_convenience.py.) Just |