Re: [Pyobjc-dev] Re: [ pyobjc-Bugs-679748 ] NSMutableString gets converted to Python string
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-02-03 23:25:41
|
David Eppstein wrote: > Currently, because of the 7-bit possibility, if you want a unicode > string from a value s that came from the objc side, you need to call > unicode(s). I hope and assume that whatever happens with strings, > unicode(s) will still work. I'm curious: if the string is known to be 7-bit ascii, in what situation does an 8-bit string not work where a unicde string does? > There seems to be a thread going now on c.l.py about unicode > filenames... I only see one about source encodings... Btw. while peeking around I came across the thing Bill warned for: [NSString stringWithCString:] returns an instance of NSCFString, which is a subclass of -- tada -- NSMutableString. This doesn't mean it _is_ mutable: I get an exception if I try. So _inheritance_ can't be used to determine mutability. Does anyone know off hand what can? Just |