Re: [Pyobjc-dev] NSString & mutability
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-02-04 22:03:46
|
Just van Rossum wrote: > 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.) I've managed to "fix" this. I've attached a patch that more or less completely implements partial conversion. unicode(someMutableString) works as expected (as well as str()). And now I'm going to read Bill's epos a second time ;-) Just |